feat: working connection, conn setting, and gear ratio setting for universal shifters
This commit is contained in:
@ -12,14 +12,11 @@ _BluetoothDeviceModel _$BluetoothDeviceModelFromJson(
|
||||
id: json['id'] as String,
|
||||
name: json['name'] as String?,
|
||||
address: json['address'] as String,
|
||||
rssi: (json['rssi'] as num?)?.toInt(),
|
||||
type: $enumDecodeNullable(_$DeviceTypeEnumMap, json['type']) ??
|
||||
DeviceType.other,
|
||||
isConnected: json['isConnected'] as bool? ?? false,
|
||||
manufacturerData: json['manufacturerData'] as Map<String, dynamic>?,
|
||||
serviceUuids: (json['serviceUuids'] as List<dynamic>?)
|
||||
?.map((e) => e as String)
|
||||
.toList(),
|
||||
deviceIdent: const DeviceIdentJsonConverter()
|
||||
.fromJson(json['deviceIdent'] as String),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$BluetoothDeviceModelToJson(
|
||||
@ -28,11 +25,10 @@ Map<String, dynamic> _$BluetoothDeviceModelToJson(
|
||||
'id': instance.id,
|
||||
'name': instance.name,
|
||||
'address': instance.address,
|
||||
'rssi': instance.rssi,
|
||||
'type': _$DeviceTypeEnumMap[instance.type]!,
|
||||
'isConnected': instance.isConnected,
|
||||
'manufacturerData': instance.manufacturerData,
|
||||
'serviceUuids': instance.serviceUuids,
|
||||
'deviceIdent':
|
||||
const DeviceIdentJsonConverter().toJson(instance.deviceIdent),
|
||||
};
|
||||
|
||||
const _$DeviceTypeEnumMap = {
|
||||
|
||||
Reference in New Issue
Block a user