18 lines
370 B
Dart
18 lines
370 B
Dart
import 'package:uuid/uuid.dart';
|
|
|
|
class ResponseFromRegisteringGame {
|
|
final UuidValue playerID;
|
|
|
|
const ResponseFromRegisteringGame({
|
|
required this.playerID,
|
|
});
|
|
|
|
factory ResponseFromRegisteringGame.fromJson(Map<String, dynamic> json) {
|
|
final uuid = UuidValue(json['playerID']);
|
|
|
|
return ResponseFromRegisteringGame(
|
|
playerID: uuid,
|
|
);
|
|
}
|
|
}
|