PaymentPagesCheckoutSessionCustomFieldsOption.fromJson constructor

PaymentPagesCheckoutSessionCustomFieldsOption.fromJson(
  1. Object? json
)

Implementation

factory PaymentPagesCheckoutSessionCustomFieldsOption.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentPagesCheckoutSessionCustomFieldsOption(
    label: (map['label'] as String),
    value: (map['value'] as String),
  );
}