import 'package:uuid/uuid.dart'; class ResponseFromRegisteringGame { final UuidValue playerID; final UuidValue lobbyID; const ResponseFromRegisteringGame({ required this.playerID, required this.lobbyID, }); factory ResponseFromRegisteringGame.fromJson(Map json) { final playerid = UuidValue(json['playerID']); final lobbyid = UuidValue(json['lobbyID']); return ResponseFromRegisteringGame(playerID: playerid, lobbyID: lobbyid); } } class WebsocketMessageIdentifyPlayer { final String playerID; final String lobbyID; const WebsocketMessageIdentifyPlayer({ required this.playerID, required this.lobbyID, }); Map toJson() => {'lobbyID': lobbyID, 'playerID': playerID}; }