toMap method
If withId
is true, will send the id in the map
Implementation
Map<String, dynamic> toMap({bool withId = true}) {
return <String, dynamic>{
if (withId) 'Id': id,
'Line1': line1,
'Line2': line2,
'Line3': line3,
'Line4': line4,
'Line5': line5,
'City': city,
'Country': country,
'CountrySubDivisionCode': countrySubDivisionCode,
'PostalCode': postalCode,
'Lat': lat,
'Long': long,
};
}