CheckoutKonbiniPaymentMethodOptions.fromJson constructor

CheckoutKonbiniPaymentMethodOptions.fromJson(
  1. Object? json
)

Implementation

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