ShippingService.fromMap constructor

ShippingService.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory ShippingService.fromMap(Map<String, dynamic> json) => ShippingService(
  id: json["id"],
  countries: json["countries"] == null ? [] : List<ShippingServiceCountry>.from(json["countries"]!.map((x) => ShippingServiceCountry.fromMap(x))),
  name: json["name"],
  info: json["info"],
  active: json["active"],
  allowsPod: json["allows_pod"],
  logoKey: json["logo_key"],
  baseUrl: json["base_url"],
);