PaymentPagesCheckoutSessionCustomFieldsNumeric.fromJson constructor
PaymentPagesCheckoutSessionCustomFieldsNumeric.fromJson(
- Object? json
Implementation
factory PaymentPagesCheckoutSessionCustomFieldsNumeric.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentPagesCheckoutSessionCustomFieldsNumeric(
maximumLength: map['maximum_length'] == null
? null
: (map['maximum_length'] as num).toInt(),
minimumLength: map['minimum_length'] == null
? null
: (map['minimum_length'] as num).toInt(),
value: map['value'] == null ? null : (map['value'] as String),
);
}