toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'messageId'] = this.messageId;
json[r'webhookId'] = this.webhookId;
json[r'eventName'] = this.eventName;
if (this.webhookName != null) {
json[r'webhookName'] = this.webhookName;
} else {
json[r'webhookName'] = null;
}
json[r'smsId'] = this.smsId;
json[r'userId'] = this.userId;
json[r'phoneNumber'] = this.phoneNumber;
json[r'toNumber'] = this.toNumber;
json[r'fromNumber'] = this.fromNumber;
json[r'body'] = this.body;
json[r'read'] = this.read;
return json;
}