getSpace method
Get the Space represented by spaceUri
headers
will be added in addition to ApptiveGridClient.defaultHeaders
Requires Authorization
throws Response
if the request fails
Implementation
Future<Space> getSpace({
required Uri uri,
Map<String, String> headers = const {},
bool isRetry = false,
}) async {
return (await performApptiveLink<Space>(
link: ApptiveLink(uri: uri, method: 'get'),
headers: headers,
isRetry: isRetry,
parseResponse: (response) async =>
Space.fromJson(json.decode(response.body)),
))!;
}