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

31 lines
1016 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(),
);
}