WooShippingMethodMethods.fromJson constructor
WooShippingMethodMethods.fromJson(
- Map<String, dynamic> json
)
Implementation
WooShippingMethodMethods.fromJson(Map<String, dynamic> json) {
if (json['free_shipping'] != null) {
freeShipping = [];
json['free_shipping'].forEach((v) {
freeShipping!.add(new WooShippingMethodFreeShipping.fromJson(v));
});
}
if (json['flat_rate'] != null) {
flatRate = [];
json['flat_rate'].forEach((v) {
flatRate!.add(new WooShippingMethodFlatRate.fromJson(v));
});
}
if (json['local_pickup'] != null) {
localPickup = [];
json['local_pickup'].forEach((v) {
localPickup!.add(new WooShippingMethodLocalPickup.fromJson(v));
});
}
}