fix(llc): fix event model

This commit is contained in:
Salvatore Giordano
2021-10-05 14:35:37 +02:00
parent 859c42305c
commit 27c684e766
2 changed files with 2 additions and 2 deletions
@@ -183,7 +183,7 @@ class EventChannel extends ChannelModel {
DateTime? deletedAt,
required int memberCount,
Map<String, Object?>? extraData,
required int cooldown,
int cooldown = 0,
String? team,
}) : super(
id: id,
@@ -84,6 +84,6 @@ EventChannel _$EventChannelFromJson(Map<String, dynamic> json) => EventChannel(
: DateTime.parse(json['deleted_at'] as String),
memberCount: json['member_count'] as int,
extraData: json['extra_data'] as Map<String, dynamic>?,
cooldown: json['cooldown'] as int,
cooldown: json['cooldown'] as int? ?? 0,
team: json['team'] as String?,
);