internal static SignedIdentifier DeserializeSignedIdentifier(JsonElement element)
        {
            Optional <string>       id           = default;
            Optional <AccessPolicy> accessPolicy = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("id"))
                {
                    id = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("accessPolicy"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    accessPolicy = AccessPolicy.DeserializeAccessPolicy(property.Value);
                    continue;
                }
            }
            return(new SignedIdentifier(id.Value, accessPolicy.Value));
        }
 internal SignedIdentifier(string id, AccessPolicy accessPolicy) : base(id)
 {
     AccessPolicy = accessPolicy;
 }