Files
abawo-bt-app/lib/model/bluetooth_device_model.g.dart

38 lines
1.3 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'bluetooth_device_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_BluetoothDeviceModel _$BluetoothDeviceModelFromJson(
Map<String, dynamic> json) =>
_BluetoothDeviceModel(
id: json['id'] as String,
name: json['name'] as String?,
address: json['address'] as String,
type: $enumDecodeNullable(_$DeviceTypeEnumMap, json['type']) ??
DeviceType.other,
manufacturerData: json['manufacturerData'] as Map<String, dynamic>?,
deviceIdent: const DeviceIdentJsonConverter()
.fromJson(json['deviceIdent'] as String),
);
Map<String, dynamic> _$BluetoothDeviceModelToJson(
_BluetoothDeviceModel instance) =>
<String, dynamic>{
'id': instance.id,
'name': instance.name,
'address': instance.address,
'type': _$DeviceTypeEnumMap[instance.type]!,
'manufacturerData': instance.manufacturerData,
'deviceIdent':
const DeviceIdentJsonConverter().toJson(instance.deviceIdent),
};
const _$DeviceTypeEnumMap = {
DeviceType.universalShifters: 'universalShifters',
DeviceType.other: 'other',
};