Address.fromJson constructor

Address.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Address.fromJson(Map<String, dynamic> json) {
  return Address(
    addressId: json['addressId'],
    address: json['address'],
    country: json['country'],
    state: json['state'],
    city: json['city'],
    postcode: json['postcode'],
    shopLatitude: json['shop_latitude'],
    shopLongitude: json['shop_longitude'],
    flatRate: json['flat_rate'],
    forFirst: json['for_first'],
    everyAdditional: json['every_additional'],
  );
}