1. Import
This commit is contained in:
commit
cb4525a774
165 files changed
+14763
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import 'package:isar/isar.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:stadtbote/model/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