WooOrderPayloadCouponLines.fromJson constructor

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

Implementation

WooOrderPayloadCouponLines.fromJson(Map<String, dynamic> json) {
  code = json['code'];
  if (json['meta_data'] != null) {
    metaData = <WooOrderPayloadMetaData>[];
    json['meta_data'].forEach((v) {
      metaData!.add(new WooOrderPayloadMetaData.fromJson(v));
    });
  }
}