Erweiterungen
This commit is contained in:
1 parent
a39991bb63
commit
8e5462bc91
30 files changed
+173
-2664
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:stadtbote/protocoll_messages/device_object.dart';
|
||||
|
||||
part 'bootstrap_request.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class BootstrapRequest {
|
||||
late String app;
|
||||
late int ver;
|
||||
late String mqttClientId;
|
||||
|
||||
@JsonKey(name: 'device')
|
||||
late DeviceObject deviceObject;
|
||||
|
||||
BootstrapRequest();
|
||||
|
||||
factory BootstrapRequest.fromJson(Map<String, dynamic> json) => _$BootstrapRequestFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$BootstrapRequestToJson(this);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user