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