1import 'package:freezed_annotation/freezed_annotation.dart';
2
3part 'update_gallery_request.freezed.dart';
4part 'update_gallery_request.g.dart';
5
6/// Request model for updating a gallery.
7/// See lexicon: social.grain.gallery.updateGallery
8@freezed
9class UpdateGalleryRequest with _$UpdateGalleryRequest {
10 const factory UpdateGalleryRequest({
11 required String galleryUri,
12 required String title,
13 String? description,
14 }) = _UpdateGalleryRequest;
15
16 factory UpdateGalleryRequest.fromJson(Map<String, dynamic> json) =>
17 _$UpdateGalleryRequestFromJson(json);
18}