toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'success'] = this.success;
json[r'messageId'] = this.messageId;
if (this.channelId != null) {
json[r'channelId'] = this.channelId;
} else {
json[r'channelId'] = null;
}
if (this.threadId != null) {
json[r'threadId'] = this.threadId;
} else {
json[r'threadId'] = null;
}
json[r'provider'] = this.provider;
if (this.error != null) {
json[r'error'] = this.error;
} else {
json[r'error'] = null;
}
return json;
}