toJSON method

Map<String, dynamic> toJSON()

Implementation

Map<String, dynamic> toJSON() {
  return <String, dynamic>{
    'text': text,
    'likedProfiles': likedProfiles,
    'type': type.name,
    'isHidden': isHidden,
    'ownerId': ownerId,
    'ownerImgUrl': ownerImgUrl,
    'ownerName': ownerName,
    'postOwnerId': postOwnerId,
    'mediaUrl': mediaUrl,
    'createdTime': createdTime,
    'modifiedTime': modifiedTime,
    'replies': replies,
    'postId': postId
  };
}