TerminalReaderProcessSetupIntentOptions.fromJson constructor
TerminalReaderProcessSetupIntentOptions.fromJson(
- Object? json
Implementation
factory TerminalReaderProcessSetupIntentOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return TerminalReaderProcessSetupIntentOptions(
customerConsentCollected: (map['customer_consent_collected'] as bool),
expand: map['expand'] == null
? null
: (map['expand'] as List<Object?>)
.map((el) => (el as String))
.toList(),
processConfig: map['process_config'] == null
? null
: TerminalReaderReaderResourceRefundPaymentConfig.fromJson(
map['process_config']),
setupIntent: (map['setup_intent'] as String),
);
}