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