TerminalReaderReaderResourceRefundPaymentConfig.fromJson constructor

TerminalReaderReaderResourceRefundPaymentConfig.fromJson(
  1. Object? json
)

Implementation

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