toJson method
Implementation
Map<String, Object?> toJson() {
var channel = this.channel;
var form = this.form;
var isAdfRequest = this.isAdfRequest;
var raiseOnBehalfOf = this.raiseOnBehalfOf;
var requestFieldValues = this.requestFieldValues;
var requestParticipants = this.requestParticipants;
var requestTypeId = this.requestTypeId;
var serviceDeskId = this.serviceDeskId;
final json = <String, Object?>{};
if (channel != null) {
json[r'channel'] = channel;
}
if (form != null) {
json[r'form'] = form.toJson();
}
json[r'isAdfRequest'] = isAdfRequest;
if (raiseOnBehalfOf != null) {
json[r'raiseOnBehalfOf'] = raiseOnBehalfOf;
}
if (requestFieldValues != null) {
json[r'requestFieldValues'] = requestFieldValues;
}
json[r'requestParticipants'] = requestParticipants;
if (requestTypeId != null) {
json[r'requestTypeId'] = requestTypeId;
}
if (serviceDeskId != null) {
json[r'serviceDeskId'] = serviceDeskId;
}
return json;
}