toEntity method

  1. @override
RoomEntity toEntity({
  1. String? appId,
})
override

Implementation

@override
RoomEntity toEntity({String? appId}) {
  return RoomEntity(
    ownerId: ownerId,
    appId: appId,
    description: (description != null) ? description : null,
    isRoom: (isRoom != null) ? isRoom : null,
    members: (members != null) ? members : null,
    timestamp: (timestamp == null) ? null : timestamp!.millisecondsSinceEpoch,
  );
}