RegionInstanceGroupManagerResizeRequestsListResponse.fromJson constructor
RegionInstanceGroupManagerResizeRequestsListResponse.fromJson(
- Object? j
Implementation
factory RegionInstanceGroupManagerResizeRequestsListResponse.fromJson(
Object? j,
) {
final json = j as Map<String, Object?>;
return RegionInstanceGroupManagerResizeRequestsListResponse(
etag: switch (json['etag']) {
null => null,
Object $1 => decodeString($1),
},
id: switch (json['id']) {
null => null,
Object $1 => decodeString($1),
},
items: switch (json['items']) {
null => [],
List<Object?> $1 => [
for (final i in $1) InstanceGroupManagerResizeRequest.fromJson(i),
],
_ => throw const FormatException('"items" is not a list'),
},
kind: switch (json['kind']) {
null => null,
Object $1 => decodeString($1),
},
nextPageToken: switch (json['nextPageToken']) {
null => null,
Object $1 => decodeString($1),
},
selfLink: switch (json['selfLink']) {
null => null,
Object $1 => decodeString($1),
},
unreachables: switch (json['unreachables']) {
null => [],
List<Object?> $1 => [for (final i in $1) decodeString(i)],
_ => throw const FormatException('"unreachables" is not a list'),
},
warning: switch (json['warning']) {
null => null,
Object $1 => Warning.fromJson($1),
},
);
}