TrafficRoute.fromJson constructor

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

Implementation

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