refactor: Null safe QueuedToDeviceEvent and fix CamelCase filename
This commit is contained in:
parent
4b9a2945f4
commit
607658dcda
|
|
@ -1,4 +1,3 @@
|
||||||
// @dart=2.9
|
|
||||||
/*
|
/*
|
||||||
* Famedly Matrix SDK
|
* Famedly Matrix SDK
|
||||||
* Copyright (C) 2019, 2020 Famedly GmbH
|
* Copyright (C) 2019, 2020 Famedly GmbH
|
||||||
|
|
@ -24,7 +23,12 @@ class QueuedToDeviceEvent {
|
||||||
final String txnId;
|
final String txnId;
|
||||||
final Map<String, dynamic> content;
|
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) =>
|
factory QueuedToDeviceEvent.fromJson(Map<String, dynamic> json) =>
|
||||||
QueuedToDeviceEvent(
|
QueuedToDeviceEvent(
|
||||||
Loading…
Reference in New Issue