toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'id': id,
  'label': label,
  'addressLine': addressLine,
  'name': name,
  'phone': phone,
  if (source != null) 'source': source,
  if (email != null) 'email': email,
  if (houseNo != null) 'houseNo': houseNo,
  if (area != null) 'area': area,
  if (landmark != null) 'landmark': landmark,
  if (pincode != null) 'pincode': pincode,
  if (city != null) 'city': city,
  if (state != null) 'state': state,
  if (country != null) 'country': country,
};