CouponLine.fromJson constructor

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

Implementation

CouponLine.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();