listFromJson static method
Implementation
static List<SchemaProperty> listFromJson(List<dynamic>? json) {
if (json == null) {
return <SchemaProperty>[];
}
return json.fold(<SchemaProperty>[],
(List<SchemaProperty> previousValue, element) {
final SchemaProperty? object = SchemaProperty.fromJson(element);
if (object is SchemaProperty) {
previousValue.add(object);
}
return previousValue;
});
}