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