Erweiterungen

This commit is contained in:
Sven committed 2024-08-08 09:51:15 +02:00
1 parent 6981cfbf8a
commit 7a681ddcc6
7 files changed
+52 -12

No files matched your search

@@ -14,6 +14,10 @@ class BootstrapResponse
@JsonKey(name: "from_server")
late String fromServer;
late int status;
late String message;
BootstrapResponse();
factory BootstrapResponse.fromJson(Map<String, dynamic> json) => _$BootstrapResponseFromJson(json);
@@ -11,7 +11,9 @@ BootstrapResponse _$BootstrapResponseFromJson(Map<String, dynamic> json) =>
..broker = json['broker'] as String
..id = json['id'] as String
..toServer = json['to_server'] as String
..fromServer = json['from_server'] as String;
..fromServer = json['from_server'] as String
..status = json['status'] as int
..message = json['message'] as String;
Map<String, dynamic> _$BootstrapResponseToJson(BootstrapResponse instance) =>
<String, dynamic>{
@@ -19,4 +21,6 @@ Map<String, dynamic> _$BootstrapResponseToJson(BootstrapResponse instance) =>
'id': instance.id,
'to_server': instance.toServer,
'from_server': instance.fromServer,
'status': instance.status,
'message': instance.message,
};