tdd 진행
This commit is contained in:
@@ -7,8 +7,14 @@ class Event {
|
||||
final DateTime? endDate;
|
||||
final String? location;
|
||||
final String? type;
|
||||
final String? status;
|
||||
final int? maxParticipants;
|
||||
final int? currentParticipants;
|
||||
final int? gameCount;
|
||||
final double? participantFee;
|
||||
final DateTime? registrationDeadline;
|
||||
final String? publicHash;
|
||||
final String? accessPassword;
|
||||
final bool isActive;
|
||||
final String? createdBy;
|
||||
final DateTime? createdAt;
|
||||
@@ -23,8 +29,14 @@ class Event {
|
||||
this.endDate,
|
||||
this.location,
|
||||
this.type,
|
||||
this.status,
|
||||
this.maxParticipants,
|
||||
this.currentParticipants,
|
||||
this.gameCount,
|
||||
this.participantFee,
|
||||
this.registrationDeadline,
|
||||
this.publicHash,
|
||||
this.accessPassword,
|
||||
required this.isActive,
|
||||
this.createdBy,
|
||||
this.createdAt,
|
||||
@@ -42,8 +54,14 @@ class Event {
|
||||
endDate: json['endDate'] != null ? DateTime.parse(json['endDate'].toString()) : null,
|
||||
location: json['location']?.toString(),
|
||||
type: json['type']?.toString(),
|
||||
status: json['status']?.toString(),
|
||||
maxParticipants: json['maxParticipants'],
|
||||
currentParticipants: json['currentParticipants'],
|
||||
gameCount: json['gameCount'],
|
||||
participantFee: json['participantFee'] != null ? double.tryParse(json['participantFee'].toString()) : null,
|
||||
registrationDeadline: json['registrationDeadline'] != null ? DateTime.parse(json['registrationDeadline'].toString()) : null,
|
||||
publicHash: json['publicHash']?.toString(),
|
||||
accessPassword: json['accessPassword']?.toString(),
|
||||
isActive: json['isActive'] ?? true,
|
||||
createdBy: json['createdBy']?.toString(),
|
||||
createdAt: json['createdAt'] != null ? DateTime.parse(json['createdAt'].toString()) : null,
|
||||
@@ -62,8 +80,14 @@ class Event {
|
||||
'endDate': endDate?.toIso8601String(),
|
||||
'location': location,
|
||||
'type': type,
|
||||
'status': status,
|
||||
'maxParticipants': maxParticipants,
|
||||
'currentParticipants': currentParticipants,
|
||||
'gameCount': gameCount,
|
||||
'participantFee': participantFee,
|
||||
'registrationDeadline': registrationDeadline?.toIso8601String(),
|
||||
'publicHash': publicHash,
|
||||
'accessPassword': accessPassword,
|
||||
'isActive': isActive,
|
||||
'createdBy': createdBy,
|
||||
'createdAt': createdAt?.toIso8601String(),
|
||||
|
||||
Reference in New Issue
Block a user