toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'city': this.city,
      'country': this.country,
      'state': this.state,
      if (this.coordinates != null) 'coordinates': this.coordinates!.toJson(),
    };