ShippingLines.fromJson constructor

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

Implementation

ShippingLines.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  methodTitle = json['method_title'];
  methodId = json['method_id'];
  total = json['total'];
  totalTax = json['total_tax'];

  taxes = (json['taxes'] as List).map((i) => Taxes.fromJson(i)).toList();
  metaData =
      (json['meta_data'] as List).map((i) => MetaData.fromJson(i)).toList();
}