toJson method

Map<String, dynamic> toJson()

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['spaceImage'] = spaceImage;
  data['spaceName'] = spaceName;
  data['isPublic'] = isPublic;
  data['spaceDescription'] = spaceDescription;
  data['spaceCreator'] = spaceCreator;
  data['spaceId'] = spaceId;
  data['scheduleAt'] = scheduleAt?.toIso8601String();
  data['scheduleEnd'] = scheduleEnd?.toIso8601String();
  data['status'] = status;
  return data;
}