-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathflutter_nfc_kit.g.dart
108 lines (98 loc) · 3.73 KB
/
flutter_nfc_kit.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'flutter_nfc_kit.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
MifareInfo _$MifareInfoFromJson(Map<String, dynamic> json) => MifareInfo(
json['type'] as String,
json['size'] as int,
json['blockSize'] as int,
json['blockCount'] as int,
json['sectorCount'] as int?,
);
Map<String, dynamic> _$MifareInfoToJson(MifareInfo instance) =>
<String, dynamic>{
'type': instance.type,
'size': instance.size,
'blockSize': instance.blockSize,
'blockCount': instance.blockCount,
'sectorCount': instance.sectorCount,
};
NFCTag _$NFCTagFromJson(Map<String, dynamic> json) => NFCTag(
$enumDecode(_$NFCTagTypeEnumMap, json['type']),
json['id'] as String,
json['standard'] as String,
json['atqa'] as String?,
json['sak'] as String?,
json['historicalBytes'] as String?,
json['protocolInfo'] as String?,
json['applicationData'] as String?,
json['hiLayerResponse'] as String?,
json['manufacturer'] as String?,
json['systemCode'] as String?,
json['dsfId'] as String?,
json['ndefAvailable'] as bool?,
json['ndefType'] as String?,
json['ndefCapacity'] as int?,
json['ndefWritable'] as bool?,
json['ndefCanMakeReadOnly'] as bool?,
json['webUSBCustomProbeData'] as String?,
json['mifareInfo'] == null
? null
: MifareInfo.fromJson(json['mifareInfo'] as Map<String, dynamic>),
);
Map<String, dynamic> _$NFCTagToJson(NFCTag instance) => <String, dynamic>{
'type': _$NFCTagTypeEnumMap[instance.type]!,
'standard': instance.standard,
'id': instance.id,
'atqa': instance.atqa,
'sak': instance.sak,
'historicalBytes': instance.historicalBytes,
'hiLayerResponse': instance.hiLayerResponse,
'protocolInfo': instance.protocolInfo,
'applicationData': instance.applicationData,
'manufacturer': instance.manufacturer,
'systemCode': instance.systemCode,
'dsfId': instance.dsfId,
'ndefAvailable': instance.ndefAvailable,
'ndefType': instance.ndefType,
'ndefCapacity': instance.ndefCapacity,
'ndefWritable': instance.ndefWritable,
'ndefCanMakeReadOnly': instance.ndefCanMakeReadOnly,
'webUSBCustomProbeData': instance.webUSBCustomProbeData,
'mifareInfo': instance.mifareInfo,
};
const _$NFCTagTypeEnumMap = {
NFCTagType.iso7816: 'iso7816',
NFCTagType.iso15693: 'iso15693',
NFCTagType.iso18092: 'iso18092',
NFCTagType.mifare_classic: 'mifare_classic',
NFCTagType.mifare_ultralight: 'mifare_ultralight',
NFCTagType.mifare_desfire: 'mifare_desfire',
NFCTagType.mifare_plus: 'mifare_plus',
NFCTagType.webusb: 'webusb',
NFCTagType.unknown: 'unknown',
};
NDEFRawRecord _$NDEFRawRecordFromJson(Map<String, dynamic> json) =>
NDEFRawRecord(
json['identifier'] as String,
json['payload'] as String,
json['type'] as String,
$enumDecode(_$TypeNameFormatEnumMap, json['typeNameFormat']),
);
Map<String, dynamic> _$NDEFRawRecordToJson(NDEFRawRecord instance) =>
<String, dynamic>{
'identifier': instance.identifier,
'payload': instance.payload,
'type': instance.type,
'typeNameFormat': _$TypeNameFormatEnumMap[instance.typeNameFormat]!,
};
const _$TypeNameFormatEnumMap = {
TypeNameFormat.empty: 'empty',
TypeNameFormat.nfcWellKnown: 'nfcWellKnown',
TypeNameFormat.media: 'media',
TypeNameFormat.absoluteURI: 'absoluteURI',
TypeNameFormat.nfcExternal: 'nfcExternal',
TypeNameFormat.unknown: 'unknown',
TypeNameFormat.unchanged: 'unchanged',
};