toJSON method

Map<String, dynamic> toJSON()

Implementation

Map<String, dynamic> toJSON() {
  return <String, dynamic>{
    //'id': id,
    'ownerId': ownerId,
    'profileName': profileName,
    'profileImgUrl': profileImgUrl,
    'text': text,
    'createdTime': DateTime.now().millisecondsSinceEpoch,
    'type': type.name,
    'mediaUrl': mediaUrl,
    'referenceId': referenceId,
    'likedProfiles': likedProfiles
  };
}