toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'eventLogId': eventLogId,
    'videoId': videoId,
    'creationDate': creationDate.toIso8601String(),
    'videoUrl': videoUrl,
    'videoThumbUrl': videoThumbUrl,
    'imgThumbUrl': imgThumbUrl,
    // 'type': type.name,
    'author': author.toMap(),
    'survey': survey?.toMap(),
  };
}