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