TerminalReaderReaderResourceProcessConfig.fromJson constructor

TerminalReaderReaderResourceProcessConfig.fromJson(
  1. Object? json
)

Implementation

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