Line data Source code
1 : // GENERATED CODE - DO NOT MODIFY BY HAND
2 :
3 : // ignore_for_file: implicit_dynamic_parameter, non_constant_identifier_names, unused_element
4 :
5 : part of 'linkeable.dart';
6 :
7 : // **************************************************************************
8 : // JsonSerializableGenerator
9 : // **************************************************************************
10 :
11 1 : _$DocumentLinkeable _$_$DocumentLinkeableFromJson(Map<String, dynamic> json) {
12 1 : return _$DocumentLinkeable(
13 1 : linkType: json['link_type'] as String,
14 4 : tags: (json['tags'] as List<dynamic>).map((e) => e as String).toList(),
15 1 : id: json['id'] as String,
16 1 : lang: json['lang'] as String,
17 1 : slug: json['slug'] as String,
18 1 : type: json['type'] as String,
19 1 : isBroken: json['isBroken'] as bool,
20 : );
21 : }
22 :
23 0 : Map<String, dynamic> _$_$DocumentLinkeableToJson(
24 : _$DocumentLinkeable instance) =>
25 0 : <String, dynamic>{
26 0 : 'link_type': instance.linkType,
27 0 : 'tags': instance.tags,
28 0 : 'id': instance.id,
29 0 : 'lang': instance.lang,
30 0 : 'slug': instance.slug,
31 0 : 'type': instance.type,
32 0 : 'isBroken': instance.isBroken,
33 : };
34 :
35 1 : _$MediaLinkeable _$_$MediaLinkeableFromJson(Map<String, dynamic> json) {
36 1 : return _$MediaLinkeable(
37 1 : linkType: json['link_type'] as String,
38 1 : height: json['height'] as String?,
39 1 : width: json['width'] as String?,
40 1 : kind: json['kind'] as String,
41 1 : name: json['name'] as String,
42 1 : size: json['size'] as String,
43 1 : url: json['url'] as String,
44 : );
45 : }
46 :
47 0 : Map<String, dynamic> _$_$MediaLinkeableToJson(_$MediaLinkeable instance) =>
48 0 : <String, dynamic>{
49 0 : 'link_type': instance.linkType,
50 0 : 'height': instance.height,
51 0 : 'width': instance.width,
52 0 : 'kind': instance.kind,
53 0 : 'name': instance.name,
54 0 : 'size': instance.size,
55 0 : 'url': instance.url,
56 : };
57 :
58 1 : _$WebLinkeable _$_$WebLinkeableFromJson(Map<String, dynamic> json) {
59 1 : return _$WebLinkeable(
60 1 : linkType: json['link_type'] as String,
61 1 : url: json['url'] as String,
62 : );
63 : }
64 :
65 0 : Map<String, dynamic> _$_$WebLinkeableToJson(_$WebLinkeable instance) =>
66 0 : <String, dynamic>{
67 0 : 'link_type': instance.linkType,
68 0 : 'url': instance.url,
69 : };
|