PaymentMethodOptionsAfterpayClearpay.fromJson constructor

PaymentMethodOptionsAfterpayClearpay.fromJson(
  1. Object? json
)

Implementation

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