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