43 lines
1.3 KiB
Dart
43 lines
1.3 KiB
Dart
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
|
||
|
|
part of 'ink_point.dart';
|
||
|
|
|
||
|
|
// **************************************************************************
|
||
|
|
// JsonSerializableGenerator
|
||
|
|
// **************************************************************************
|
||
|
|
|
||
|
|
_$InkPointImpl _$$InkPointImplFromJson(Map<String, dynamic> json) =>
|
||
|
|
_$InkPointImpl(
|
||
|
|
x: (json['x'] as num).toDouble(),
|
||
|
|
y: (json['y'] as num).toDouble(),
|
||
|
|
pressure: (json['pressure'] as num?)?.toDouble() ?? 0.5,
|
||
|
|
tilt: (json['tilt'] as num?)?.toDouble() ?? 0.0,
|
||
|
|
timestamp: (json['timestamp'] as num).toInt(),
|
||
|
|
pointerDeviceKind:
|
||
|
|
$enumDecodeNullable(
|
||
|
|
_$InputDeviceKindEnumMap,
|
||
|
|
json['pointerDeviceKind'],
|
||
|
|
) ??
|
||
|
|
InputDeviceKind.unknown,
|
||
|
|
);
|
||
|
|
|
||
|
|
Map<String, dynamic> _$$InkPointImplToJson(
|
||
|
|
_$InkPointImpl instance,
|
||
|
|
) => <String, dynamic>{
|
||
|
|
'x': instance.x,
|
||
|
|
'y': instance.y,
|
||
|
|
'pressure': instance.pressure,
|
||
|
|
'tilt': instance.tilt,
|
||
|
|
'timestamp': instance.timestamp,
|
||
|
|
'pointerDeviceKind': _$InputDeviceKindEnumMap[instance.pointerDeviceKind]!,
|
||
|
|
};
|
||
|
|
|
||
|
|
const _$InputDeviceKindEnumMap = {
|
||
|
|
InputDeviceKind.touch: 'touch',
|
||
|
|
InputDeviceKind.mouse: 'mouse',
|
||
|
|
InputDeviceKind.stylus: 'stylus',
|
||
|
|
InputDeviceKind.invertedStylus: 'invertedStylus',
|
||
|
|
InputDeviceKind.trackpad: 'trackpad',
|
||
|
|
InputDeviceKind.unknown: 'unknown',
|
||
|
|
};
|