PromotionCodeCurrencyOptionsValue.fromJson constructor

PromotionCodeCurrencyOptionsValue.fromJson(
  1. Object? json
)

Implementation

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