CouponLines.fromJson constructor

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

Implementation

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