ShippingLine.fromJson constructor

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

Implementation

factory ShippingLine.fromJson(Map<String, dynamic> json) => ShippingLine(
      id: json["id"],
      methodTitle: json["method_title"],
      methodId: json["method_id"],
      total: json["total"],
      totalTax: json["total_tax"],
      taxes: List<dynamic>.from(json["taxes"].map((x) => x)),
      metaData: List<MetaDatum>.from(
          json["meta_data"].map((x) => MetaDatum.fromJson(x))),
    );