toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'id': id,
  'label': label,
  'address': address,
  '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,
  if (flatHouseNo != null) 'flatHouseNo': flatHouseNo,
  if (addressLine1 != null) 'addressLine1': addressLine1,
  if (addressLine2 != null) 'addressLine2': addressLine2,
  if (addressLine3 != null) 'addressLine3': addressLine3,
};