Fehlerkorrekturen und Erweiterungen

This commit is contained in:
Sven committed 2025-02-05 09:57:51 +01:00
1 parent 81133905de
commit 080c5b22ef
11 files changed
+176 -88

No files matched your search

@@ -0,0 +1,15 @@
import 'package:json_annotation/json_annotation.dart';
part 'connection_lost_message.g.dart';
@JsonSerializable()
class ConnectionLostMessage {
@JsonKey(name: "connection_lost")
late bool connectionLost;
ConnectionLostMessage();
factory ConnectionLostMessage.fromJson(Map<String, dynamic> json) => _$ConnectionLostMessageFromJson(json);
Map<String, dynamic> toJson() => _$ConnectionLostMessageToJson(this);
}
@@ -0,0 +1,17 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'connection_lost_message.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
ConnectionLostMessage _$ConnectionLostMessageFromJson(
Map<String, dynamic> json) =>
ConnectionLostMessage()..connectionLost = json['connection_lost'] as bool;
Map<String, dynamic> _$ConnectionLostMessageToJson(
ConnectionLostMessage instance) =>
<String, dynamic>{
'connection_lost': instance.connectionLost,
};