1import 'package:freezed_annotation/freezed_annotation.dart';
2
3import 'gallery_photo.dart';
4import 'gallery_viewer.dart';
5import 'profile.dart';
6
7part 'gallery.freezed.dart';
8part 'gallery.g.dart';
9
10@freezed
11class Gallery with _$Gallery {
12 const factory Gallery({
13 required String uri,
14 required String cid,
15 String? title,
16 String? description,
17 required List<GalleryPhoto> items,
18 Profile? creator,
19 String? createdAt,
20 int? favCount,
21 int? commentCount,
22 GalleryViewer? viewer,
23 List<Map<String, dynamic>>? facets,
24 List<String>? cameras,
25 }) = _Gallery;
26
27 factory Gallery.fromJson(Map<String, dynamic> json) => _$GalleryFromJson(json);
28}