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