BatchCreateFeaturesResponse.fromJson constructor
BatchCreateFeaturesResponse.fromJson(
- Object? j
Implementation
factory BatchCreateFeaturesResponse.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return BatchCreateFeaturesResponse(
features: switch (json['features']) {
null => [],
List<Object?> $1 => [for (final i in $1) Feature.fromJson(i)],
_ => throw const FormatException('"features" is not a list'),
},
);
}