toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'groupName': groupName,
'groupImage': groupImage,
'groupDescription': groupDescription,
'isPublic': isPublic,
'groupCreator': groupCreator,
'chatId': chatId,
'scheduleAt': scheduleAt?.toIso8601String(),
'scheduleEnd': scheduleEnd?.toIso8601String(),
'groupType': groupType,
'rules': rules,
'status': chatStringFromChatStatus(status),
'meta': meta,
'sessionKey': sessionKey,
'encryptedSecret': encryptedSecret,
};
}