ListRoutesOutput.fromJson constructor

ListRoutesOutput.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListRoutesOutput.fromJson(Map<String, dynamic> json) {
  return ListRoutesOutput(
    routes: (json['routes'] as List)
        .whereNotNull()
        .map((e) => RouteRef.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}