SessionDiscountsItem.fromJson constructor
SessionDiscountsItem.fromJson(
- Object? json
Implementation
factory SessionDiscountsItem.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SessionDiscountsItem(
coupon: map['coupon'] == null ? null : (map['coupon'] as String),
promotionCode: map['promotion_code'] == null
? null
: (map['promotion_code'] as String),
);
}