loadGrid method
Loads a Grid
user
User that owns the Grid
space
Space the Grid
is in
grid
id of the Grid
Implementation
Future<Grid> loadGrid(
{required String user,
required String space,
required String grid}) async {
await _authenticator.checkAuthentication();
final url = Uri.parse(
'${options.environment.url}/api/users/$user/spaces/$space/grids/$grid');
final response = await _client.get(url, headers: headers);
if (response.statusCode >= 400) {
throw response;
}
return Grid.fromJson(json.decode(response.body));
}