22 lines
521 B
Dart
22 lines
521 B
Dart
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);
|
|
}
|
|
|