private global::System.Collections.Generic.IReadOnlyList <global::StrawberryShake.Client.StarWarsQuery.IHasName>?ParseGetHumanHumanFriendsNodes( JsonElement parent, string field) { if (!parent.TryGetProperty(field, out JsonElement obj)) { return(null); } if (obj.ValueKind == JsonValueKind.Null) { return(null); } int objLength = obj.GetArrayLength(); var list = new global::StrawberryShake.Client.StarWarsQuery.IHasName[objLength]; for (int objIndex = 0; objIndex < objLength; objIndex++) { JsonElement element = obj[objIndex]; list[objIndex] = new HasName ( DeserializeNullableString(element, "name") ); } return(list); }
private IReadOnlyList <IHasName>?ParseGetHumanHumanFriendsNodes( JsonElement parent, string field) { if (!parent.TryGetProperty(field, out JsonElement obj)) { return(null); } if (obj.ValueKind == JsonValueKind.Null) { return(null); } int objLength = obj.GetArrayLength(); var list = new IHasName[objLength]; for (int objIndex = 0; objIndex < objLength; objIndex++) { JsonElement element = obj[objIndex]; list[objIndex] = new HasName ( DeserializeNullableString(element, "name") ); } return(list); }