CouponAppliesTo.fromJson constructor
CouponAppliesTo.fromJson(
- Object? json
Implementation
factory CouponAppliesTo.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return CouponAppliesTo(
products: (map['products'] as List<Object?>)
.map((el) => (el as String))
.toList());
}