FreeShipping.fromJson constructor
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'];
}
}
}