toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _resultData = <String, dynamic>{};
  final l$id = id;
  _resultData['id'] = l$id;
  final l$gif = gif;
  _resultData['gif'] = l$gif;
  final l$text = text;
  _resultData['text'] = l$text;
  final l$sticker = sticker;
  _resultData['sticker'] = l$sticker;
  final l$createdAt = createdAt;
  _resultData['createdAt'] = dateTimeToJson(l$createdAt);
  final l$updatedAt = updatedAt;
  _resultData['updatedAt'] = dateTimeToJson(l$updatedAt);
  final l$sender = sender;
  _resultData['sender'] = l$sender.toJson();
  final l$custom = custom;
  _resultData['custom'] = l$custom?.toJson();
  final l$location = location;
  _resultData['location'] = l$location?.toJson();
  final l$seenBy = seenBy;
  _resultData['seenBy'] = l$seenBy?.map((e) => e.toJson()).toList();
  final l$media = media;
  _resultData['media'] = l$media?.toJson();
  final l$messageGroup = messageGroup;
  _resultData['messageGroup'] = l$messageGroup.toJson();
  return _resultData;
}