WooOrderPayloadFeeLines.fromJson constructor

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

Implementation

WooOrderPayloadFeeLines.fromJson(Map<String, dynamic> json) {
  name = json['name'];
  taxClass = json['tax_class'];
  taxStatus = json['tax_status'];
  total = json['total'];
  if (json['meta_data'] != null) {
    metaData = <WooOrderPayloadMetaData>[];
    json['meta_data'].forEach((v) {
      metaData!.add(new WooOrderPayloadMetaData.fromJson(v));
    });
  }
}