forked from thon-ju/bluetooth_print
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbluetooth_print_model.g.dart
76 lines (66 loc) · 2.3 KB
/
bluetooth_print_model.g.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'bluetooth_print_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
BluetoothDevice _$BluetoothDeviceFromJson(Map<String, dynamic> json) {
return BluetoothDevice()
..name = json['name'] as String?
..address = json['address'] as String?
..type = json['type'] as int?
..connected = json['connected'] as bool?;
}
Map<String, dynamic> _$BluetoothDeviceToJson(BluetoothDevice instance) {
final val = <String, dynamic>{};
void writeNotNull(String key, dynamic value) {
if (value != null) {
val[key] = value;
}
}
writeNotNull('name', instance.name);
writeNotNull('address', instance.address);
writeNotNull('type', instance.type);
writeNotNull('connected', instance.connected);
return val;
}
LineText _$LineTextFromJson(Map<String, dynamic> json) {
return LineText(
type: json['type'] as String?,
content: json['content'] as String?,
size: json['size'] as int?,
align: json['align'] as int?,
weight: json['weight'] as int?,
width: json['width'] as int?,
height: json['height'] as int?,
absolutePos: json['absolutePos'] as int?,
relativePos: json['relativePos'] as int?,
fontZoom: json['fontZoom'] as int?,
underline: json['underline'] as int?,
linefeed: json['linefeed'] as int?,
x: json['x'] as int?,
y: json['y'] as int?,
);
}
Map<String, dynamic> _$LineTextToJson(LineText instance) {
final val = <String, dynamic>{};
void writeNotNull(String key, dynamic value) {
if (value != null) {
val[key] = value;
}
}
writeNotNull('type', instance.type);
writeNotNull('content', instance.content);
writeNotNull('size', instance.size);
writeNotNull('align', instance.align);
writeNotNull('weight', instance.weight);
writeNotNull('width', instance.width);
writeNotNull('height', instance.height);
writeNotNull('absolutePos', instance.absolutePos);
writeNotNull('relativePos', instance.relativePos);
writeNotNull('fontZoom', instance.fontZoom);
writeNotNull('underline', instance.underline);
writeNotNull('linefeed', instance.linefeed);
writeNotNull('x', instance.x);
writeNotNull('y', instance.y);
return val;
}