-
Notifications
You must be signed in to change notification settings - Fork 387
/
input.type_datetime.g.dart
37 lines (30 loc) · 1.33 KB
/
input.type_datetime.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
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: lines_longer_than_80_chars, text_direction_code_point_in_literal
part of 'input.type_datetime.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
SimpleClass _$SimpleClassFromJson(Map<String, dynamic> json) => SimpleClass(
DateTime.parse(json['value'] as String),
json['withDefault'] == null
? _defaultValueFunc()
: DateTime.parse(json['withDefault'] as String),
);
Map<String, dynamic> _$SimpleClassToJson(SimpleClass instance) =>
<String, dynamic>{
'value': instance.value.toIso8601String(),
'withDefault': instance.withDefault.toIso8601String(),
};
SimpleClassNullable _$SimpleClassNullableFromJson(Map<String, dynamic> json) =>
SimpleClassNullable(
json['value'] == null ? null : DateTime.parse(json['value'] as String),
json['withDefault'] == null
? _defaultValueFunc()
: DateTime.parse(json['withDefault'] as String),
);
Map<String, dynamic> _$SimpleClassNullableToJson(
SimpleClassNullable instance) =>
<String, dynamic>{
'value': instance.value?.toIso8601String(),
'withDefault': instance.withDefault?.toIso8601String(),
};