City.fromJson constructor

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

Creates class instance from JSON Object that can be returned by Android or iOS agent, or can be a serialization result

Implementation

City.fromJson(Map<String, dynamic> json) : name = json['name'];