createGallery method
Future<Gallery>
createGallery(
- String name,
- String description,
- Orientation orientation,
- 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);
}