WooShippingMethod.fromJson constructor
Implementation
WooShippingMethod.fromJson(Map<String, dynamic> json) {
parentId = json['parent_id'];
name = json['name'];
if (json['locations'] != null) {
locations = [];
json['locations'].forEach((v) {
locations!.add(new WooShippingMethodLocations.fromJson(v));
});
}
methods = json['methods'] != null
? new WooShippingMethodMethods.fromJson(json['methods'])
: null;
}