NetworkEdgeSecurityServiceAggregatedList.fromJson constructor
NetworkEdgeSecurityServiceAggregatedList.fromJson(
- Object? j
Implementation
factory NetworkEdgeSecurityServiceAggregatedList.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return NetworkEdgeSecurityServiceAggregatedList(
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 => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeString(e.key): NetworkEdgeSecurityServicesScopedList.fromJson(
e.value,
),
},
_ => throw const FormatException('"items" is not an object'),
},
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),
},
);
}