Districts.fromJson constructor

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

Implementation

factory Districts.fromJson(Map<String, dynamic> json) => Districts(
      lastUpdate: json['lastUpdate'],
      districts: List<District>.from(
          json['districts'].map((x) => District.fromJson(x))),
    );