toJson method
Implementation
Map<String, dynamic> toJson() => {
"payment_key": paymentKey ?? paymentKey,
"save_card_default": saveCardDefault ?? saveCardDefault,
"show_save_card": showSaveCard ?? showSaveCard,
"theme_color": themeColor == null
? null
: '#${themeColor?.value.toRadixString(16)}',
"language": language ?? language,
"actionbar": actionbar ?? actionbar,
"token": token ?? token,
"masked_pan_number": maskedPanNumber ?? maskedPanNumber,
"customer": customer ?? customer?.toJson(),
};