toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['members'] = members.map((member) => member.toJson()).toList();
data['pendingMembers'] =
pendingMembers.map((member) => member.toJson()).toList();
data['contractAddressERC20'] = contractAddressERC20;
data['numberOfERC20'] = numberOfERC20;
data['contractAddressNFT'] = contractAddressNFT;
data['numberOfNFTTokens'] = numberOfNFTTokens;
data['verificationProof'] = verificationProof;
data['groupImage'] = groupImage;
data['groupName'] = groupName;
data['isPublic'] = isPublic;
data['groupDescription'] = groupDescription;
data['groupCreator'] = groupCreator;
data['chatId'] = chatId;
data['scheduleAt'] = scheduleAt?.toIso8601String();
data['scheduleEnd'] = scheduleEnd?.toIso8601String();
data['groupType'] = groupType;
data['meta'] = meta;
data['status'] = chatStringFromChatStatus(status);
return data;
}