refactor: Null safe QueuedToDeviceEvent and fix CamelCase filename

This commit is contained in:
Christian Pauly 2021-08-19 10:19:51 +02:00
parent 4b9a2945f4
commit 607658dcda
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,3 @@
// @dart=2.9
/*
* Famedly Matrix SDK
* Copyright (C) 2019, 2020 Famedly GmbH
@ -24,7 +23,12 @@ class QueuedToDeviceEvent {
final String txnId;
final Map<String, dynamic> content;
QueuedToDeviceEvent({this.id, this.type, this.txnId, this.content});
QueuedToDeviceEvent({
required this.id,
required this.type,
required this.txnId,
required this.content,
});
factory QueuedToDeviceEvent.fromJson(Map<String, dynamic> json) =>
QueuedToDeviceEvent(