getCustomContentStates method
Get custom content states that authenticated user has created.
Permissions required Must have user authentication.
Implementation
Future<List<ContentState>> getCustomContentStates() async {
return (await _client.send(
'get',
'wiki/rest/api/content-states',
) as List<Object?>)
.map((i) =>
ContentState.fromJson(i as Map<String, Object?>? ?? const {}))
.toList();
}