toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (isCustomerPresent != null) {
json['is_customer_present'] = isCustomerPresent;
}
if (isContractPresent != null) {
json['is_contract_present'] = isContractPresent;
}
if (channel != null) json['channel'] = channel!.value;
if (channelType != null) {
json['channel_type'] = channelType!.value;
}
if (subChannelType != null) {
json['sub_channel_type'] = subChannelType!.value;
}
if (merchantRisk != null) json['merchant_risk'] = merchantRisk!.toJson();
if (supplementaryData != null) {
json['supplementary_data'] = supplementaryData;
}
return json;
}