PaymentFlowsInstallmentOptions.fromJson constructor

PaymentFlowsInstallmentOptions.fromJson(
  1. Object? json
)

Implementation

factory PaymentFlowsInstallmentOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentFlowsInstallmentOptions(
    enabled: (map['enabled'] as bool),
    plan: map['plan'] == null
        ? null
        : PaymentMethodDetailsCardInstallmentsPlan.fromJson(map['plan']),
  );
}