Many minor improvements
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'device_status.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class DeviceStatus {
|
||||
bool entryNfc = false;
|
||||
bool exitNfc = false;
|
||||
|
||||
DeviceStatus({this.entryNfc = false, this.exitNfc = false});
|
||||
|
||||
factory DeviceStatus.fromJson(Map<String, dynamic> json) =>
|
||||
_$DeviceStatusFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$DeviceStatusToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user