WooOrderCouponLine.fromJson constructor

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

Implementation

WooOrderCouponLine.fromJson(Map<String, dynamic> json)
    : id = json['id'],
      code = json['code'],
      discount = json['discount'],
      discountTax = json['discount_tax'],
      metaData = (json['meta_data'] as List)
          .map((i) => MetaData.fromJson(i))
          .toList();