GetRoutesResponse.fromJson constructor
Implementation
factory GetRoutesResponse.fromJson(Map<String, dynamic> json) {
return GetRoutesResponse(
items: (json['items'] as List?)
?.whereNotNull()
.map((e) => Route.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['nextToken'] as String?,
);
}