getSpaceById method
Returns a specific space.
Permissions required: Permission to view the space.
Implementation
Future<Space> getSpaceById(
{required int id, String? descriptionFormat, bool? includeIcon}) async {
return Space.fromJson(await _client.send(
'get',
'spaces/{id}',
pathParameters: {
'id': '$id',
},
queryParameters: {
if (descriptionFormat != null) 'description-format': descriptionFormat,
if (includeIcon != null) 'include-icon': '$includeIcon',
},
));
}