1
0
mirror of https://github.com/krawieck/lemmur/ synced 2024-12-18 03:18:48 +01:00
lemmur-app-android/lib/client/models/search.g.dart
2020-08-11 19:54:12 +02:00

31 lines
1015 B
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'search.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Search _$SearchFromJson(Map<String, dynamic> json) {
return Search(
type: json['type_'] as String,
comments: (json['comments'] as List)
?.map((e) =>
e == null ? null : CommentView.fromJson(e as Map<String, dynamic>))
?.toList(),
posts: (json['posts'] as List)
?.map((e) =>
e == null ? null : PostView.fromJson(e as Map<String, dynamic>))
?.toList(),
communities: (json['communities'] as List)
?.map((e) => e == null
? null
: CommunityView.fromJson(e as Map<String, dynamic>))
?.toList(),
users: (json['users'] as List)
?.map((e) =>
e == null ? null : UserView.fromJson(e as Map<String, dynamic>))
?.toList(),
);
}