FreeShipping.fromJson constructor

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

Implementation

FreeShipping.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  title = json['title'];
  methodId = json['method_id'];
  cost = json['cost'];
  if (json['cost'] != null && json['cost'] == 'min_amount') {
    if (json['kind'] != null && json['kind'] != "") {
      minimumOrderAmount = json['kind']['min_amount'];
    }
  }
}