Annotation.fromJson constructor

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

Implementation

factory Annotation.fromJson(Map<String, dynamic> json) => Annotation(
      congestion: List<Congestion>.from(
        json["congestion"].map((x) => congestionValues.map[x]!),
      ),
    );