fromSpaceDTO static method

SpaceData fromSpaceDTO(
  1. SpaceDTO spaceDTO,
  2. LiveSpaceData liveSpaceData
)

Implementation

static SpaceData fromSpaceDTO(
    SpaceDTO spaceDTO, LiveSpaceData liveSpaceData) {
  return SpaceData(
    members: spaceDTO.members,
    pendingMembers: spaceDTO.pendingMembers,
    contractAddressERC20: spaceDTO.contractAddressERC20,
    numberOfERC20: spaceDTO.numberOfERC20,
    contractAddressNFT: spaceDTO.contractAddressNFT,
    numberOfNFTTokens: spaceDTO.numberOfNFTTokens,
    verificationProof: spaceDTO.verificationProof,
    spaceImage: spaceDTO.spaceImage,
    spaceName: spaceDTO.spaceName,
    isPublic: spaceDTO.isPublic,
    spaceDescription: spaceDTO.spaceDescription ?? '',
    spaceCreator: spaceDTO.spaceCreator,
    spaceId: spaceDTO.spaceId,
    scheduleAt: spaceDTO.scheduleAt,
    scheduleEnd: spaceDTO.scheduleEnd,
    status: spaceDTO.status,
    liveSpaceData: liveSpaceData,
  );
}