2025-09-18 10:39:54 +07:00
|
|
|
part of '../game.dart';
|
|
|
|
|
|
|
|
|
|
@freezed
|
|
|
|
|
class GamePrize with _$GamePrize {
|
|
|
|
|
const factory GamePrize({
|
|
|
|
|
required String id,
|
|
|
|
|
required String gameId,
|
|
|
|
|
required String name,
|
|
|
|
|
required Map<String, dynamic> metadata,
|
|
|
|
|
required String createdAt,
|
|
|
|
|
required String updatedAt,
|
|
|
|
|
}) = _GamePrize;
|
|
|
|
|
|
2025-09-18 14:53:39 +07:00
|
|
|
factory GamePrize.empty() => const GamePrize(
|
2025-09-18 10:39:54 +07:00
|
|
|
id: '',
|
|
|
|
|
gameId: '',
|
|
|
|
|
name: '',
|
2025-09-18 14:53:39 +07:00
|
|
|
metadata: {},
|
2025-09-18 10:39:54 +07:00
|
|
|
createdAt: '',
|
|
|
|
|
updatedAt: '',
|
|
|
|
|
);
|
|
|
|
|
}
|