getSpaceContentStates method
Get content states that are suggested in the space. Permissions required: Space view permission
Implementation
Future<List<ContentState>> getSpaceContentStates(String spaceKey) async {
return (await _client.send(
'get',
'wiki/rest/api/space/{spaceKey}/state',
pathParameters: {
'spaceKey': spaceKey,
},
) as List<Object?>)
.map((i) =>
ContentState.fromJson(i as Map<String, Object?>? ?? const {}))
.toList();
}