createGallery method

Future<Gallery> createGallery(
  1. String name,
  2. String description,
  3. Orientation orientation,
  4. Type type,
)

Creates the gallery with the given data

Implementation

Future<Gallery> createGallery(String name, String description, Orientation orientation, Type type) async {
  final response = await _post('/api/media/gallery', data: {
    'name': name,
    'description': description,
    'orientation': orientation,
    'type': type,
  });

  return Gallery.fromJson(response.data);
}