toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'userId'] = this.userId;
    json[r'phoneNumber'] = this.phoneNumber;
    json[r'fromNumber'] = this.fromNumber;
    json[r'toNumber'] = this.toNumber;
    json[r'body'] = this.body;
    json[r'sid'] = this.sid;
    json[r'replyToSid'] = this.replyToSid;
    json[r'replyToId'] = this.replyToId;
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
    json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
  return json;
}