factory TransferData.dataBytesFactory(Uint8List bytes, int? id) { return TransferData( id: id, type: DataTypes.bytes, bytes: bytes, file: null, stream: null, ); }