getSpace method

Future<GetSpaceResponse> getSpace({
  1. required String name,
})

Returns information about an space.

Parameter name : The name of the space.

Implementation

Future<GetSpaceResponse> getSpace({
  required String name,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/spaces/${Uri.encodeComponent(name)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetSpaceResponse.fromJson(response);
}