trphoenix
2018-11-28 117664259ffca2f16ec47c5672012dfb6704b5ab
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
// GENERATED CODE - DO NOT MODIFY BY HAND
 
part of 'SearchResult.dart';
 
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
 
SearchResult _$SearchResultFromJson(Map<String, dynamic> json) {
  return new SearchResult(
      $enumDecodeNullable(
          'SearchResultKind', SearchResultKind.values, json['kind'] as String),
      (json['items'] as List)
          ?.map((e) => e == null
              ? null
              : new SearchResultItem.fromJson(e as Map<String, Object>))
          ?.toList());
}
 
abstract class _$SearchResultSerializerMixin {
  SearchResultKind get kind;
  List<SearchResultItem> get items;
  Map<String, dynamic> toJson() => <String, dynamic>{
        'kind': kind?.toString()?.split('.')?.last,
        'items': items
      };
}