toJson method
Implementation
Map<String, dynamic> toJson() => {
'chatName': chatName,
'sizeOfChat': sizeOfChat,
'names': members,
'msgContents': _listOfMessageContentsToJson(messages),
'msgsPerPerson': msgsPerMember,
'indexesPerPerson': indexesPerMember,
'imagesPaths': imagesPaths,
};