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