getEntityGroupsForEntity method
Future<List<EntityGroupId> >
getEntityGroupsForEntity(
- EntityId entityId, {
- RequestConfig? requestConfig,
Implementation
Future<List<EntityGroupId>> getEntityGroupsForEntity(EntityId entityId,
{RequestConfig? requestConfig}) async {
var response = await _tbClient.get<List<dynamic>>(
'/api/entityGroups/${entityId.entityType.toShortString()}/${entityId.id}',
options: defaultHttpOptionsFromConfig(requestConfig));
return response.data!.map((e) => EntityGroupId.fromJson(e)).toList();
}