PromotionCodeUpdateOptionsRestrictions.fromJson constructor
PromotionCodeUpdateOptionsRestrictions.fromJson(
- Object? json
Implementation
factory PromotionCodeUpdateOptionsRestrictions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PromotionCodeUpdateOptionsRestrictions(
currencyOptions: map['currency_options'] == null
? null
: (map['currency_options'] as Map).cast<String, Object?>().map((
key,
value,
) =>
MapEntry(
key,
PromotionCodeCurrencyOptionsValue.fromJson(value),
)));
}