get method

Get the file object at the server for this FileStorageReference.

Implementation

Future<CarpFileResponse> get() async {
  assert(id > 0);
  final String url = "$fileEndpointUri/$id";

  final response = await service._get(url);

  Map<String, dynamic> responseJson =
      service._handleResponse(response) as Map<String, dynamic>;
  return CarpFileResponse._(responseJson);
}