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