getGallery method

Future<Gallery> getGallery(
  1. int id
)

Gets the gallery with the given id

Implementation

Future<Gallery> getGallery(int id) async {
  final response = await _get('/api/media/gallery/$id');

  return Gallery.fromJson(response.data);
}