forked from google/json_serializable.dart
/
field_map_example.g.dart
33 lines (25 loc) · 987 Bytes
/
field_map_example.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
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: lines_longer_than_80_chars, text_direction_code_point_in_literal
part of 'field_map_example.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Model _$ModelFromJson(Map<String, dynamic> json) => Model(
firstName: json['first-name'] as String,
lastName: json['LAST_NAME'] as String,
);
const _$ModelFieldMap = <String, String>{
'firstName': 'first-name',
'lastName': 'LAST_NAME',
};
Map<String, dynamic> _$ModelToJson(Model instance) => <String, dynamic>{
'first-name': instance.firstName,
'LAST_NAME': instance.lastName,
};
const _$PrivateModelFieldMap = <String, String>{
'fullName': 'full-name',
};
Map<String, dynamic> _$PrivateModelToJson(_PrivateModel instance) =>
<String, dynamic>{
'full-name': instance.fullName,
};