fix event
This commit is contained in:
@@ -88,7 +88,8 @@ class Event {
|
|||||||
final String? parentId;
|
final String? parentId;
|
||||||
|
|
||||||
/// True if the event is generated by this client
|
/// True if the event is generated by this client
|
||||||
late final bool isLocal;
|
@JsonKey(defaultValue: false)
|
||||||
|
bool isLocal;
|
||||||
|
|
||||||
/// Map of custom channel extraData
|
/// Map of custom channel extraData
|
||||||
@JsonKey(includeIfNull: false)
|
@JsonKey(includeIfNull: false)
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ Event _$EventFromJson(Map<String, dynamic> json) {
|
|||||||
channelType: json['channel_type'] as String?,
|
channelType: json['channel_type'] as String?,
|
||||||
parentId: json['parent_id'] as String?,
|
parentId: json['parent_id'] as String?,
|
||||||
extraData: json['extra_data'] as Map<String, dynamic>?,
|
extraData: json['extra_data'] as Map<String, dynamic>?,
|
||||||
)..isLocal = json['is_local'] as bool?;
|
)..isLocal = json['is_local'] as bool? ?? false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, dynamic> _$EventToJson(Event instance) {
|
Map<String, dynamic> _$EventToJson(Event instance) {
|
||||||
|
|||||||
Reference in New Issue
Block a user