createGroup method
Creates a group that can hold various kinds of entities such as identity and identity template
Implementation
Future createGroup({
required String category,
required String name,
String? groupOwner,
Map<String,dynamic>? attrs,
bool? useInlineMembers = true,
}) async {
var url = '/create-group';
var params = <String,dynamic>{
"category": category,
"name": name,
};
if (groupOwner != null) {
params['groupOwner'] = groupOwner;
}
if (attrs != null) {
params['attrs'] = attrs;
}
if (useInlineMembers != null) {
params['useInlineMembers'] = useInlineMembers;
}
var resp = await _invoke(url, params, true);
if (resp['result'] != 'OK') throw resp['result'];
}