toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['locationId'] = this.id;
  data['uniqueId'] = this.uniqueId;
  data['locationLabel'] = this.locationLabel;
  data['favourite'] = this.favourite;
  data['street'] = this.street;
  data['zip'] = this.zip;
  data['city'] = this.city;
  data['state'] = this.state;
  data['country'] = this.country;
  data['utcModifier'] = this.utcModifier;
  data['lat'] = this.lat;
  data['lng'] = this.lng;
  data['type'] = this.type.index;
  data['setAsDefault'] = this.setAsDefault ? 1 : 0;
  data['contactPhone'] = this.contactPhone;
  data['deliveryInstructions'] = this.deliveryInstructions;
  return data;
}