internal static TableSignedIdentifier DeserializeTableSignedIdentifier(JsonElement element) { string id = default; Optional <TableAccessPolicy> 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 = TableAccessPolicy.DeserializeTableAccessPolicy(property.Value); continue; } } return(new TableSignedIdentifier(id, accessPolicy.Value)); }
internal TableSignedIdentifier(string id, TableAccessPolicy accessPolicy) { Id = id; AccessPolicy = accessPolicy; }