toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final country = this.country;
  final subdivision = this.subdivision;
  return {
    'Country': country,
    if (subdivision != null) 'Subdivision': subdivision,
  };
}