PaymentIntentAfterpayClearpay.fromJson constructor

PaymentIntentAfterpayClearpay.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentAfterpayClearpay.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentAfterpayClearpay(
    captureMethod: map['capture_method'] == null
        ? null
        : SessionCaptureMethod.fromJson(map['capture_method']),
    reference: map['reference'] == null ? null : (map['reference'] as String),
  );
}