fix(llc): fix event model
This commit is contained in:
@@ -183,7 +183,7 @@ class EventChannel extends ChannelModel {
|
|||||||
DateTime? deletedAt,
|
DateTime? deletedAt,
|
||||||
required int memberCount,
|
required int memberCount,
|
||||||
Map<String, Object?>? extraData,
|
Map<String, Object?>? extraData,
|
||||||
required int cooldown,
|
int cooldown = 0,
|
||||||
String? team,
|
String? team,
|
||||||
}) : super(
|
}) : super(
|
||||||
id: id,
|
id: id,
|
||||||
|
|||||||
@@ -84,6 +84,6 @@ EventChannel _$EventChannelFromJson(Map<String, dynamic> json) => EventChannel(
|
|||||||
: DateTime.parse(json['deleted_at'] as String),
|
: DateTime.parse(json['deleted_at'] as String),
|
||||||
memberCount: json['member_count'] as int,
|
memberCount: json['member_count'] as int,
|
||||||
extraData: json['extra_data'] as Map<String, dynamic>?,
|
extraData: json['extra_data'] as Map<String, dynamic>?,
|
||||||
cooldown: json['cooldown'] as int,
|
cooldown: json['cooldown'] as int? ?? 0,
|
||||||
team: json['team'] as String?,
|
team: json['team'] as String?,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user