PromotionCodeCurrencyOption.fromJson constructor

PromotionCodeCurrencyOption.fromJson(
  1. Object? json
)

Implementation

factory PromotionCodeCurrencyOption.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PromotionCodeCurrencyOption(
      minimumAmount: (map['minimum_amount'] as num).toInt());
}