registerNewGroupAdministrator method
Future<RegistrationSuccess>
registerNewGroupAdministrator(
- String sdkId,
- GroupType? type,
- PermissionType? role,
- RegistrationInformation registrationInformation,
Implementation
Future<RegistrationSuccess> registerNewGroupAdministrator(String sdkId, GroupType? type, PermissionType? role, RegistrationInformation registrationInformation) async {
final res = await _methodChannel.invokeMethod<String>(
'GroupApi.registerNewGroupAdministrator',
{
"sdkId": sdkId,
"type": jsonEncode(type == null ? null : GroupType.encode(type!)),
"role": jsonEncode(role == null ? null : PermissionType.encode(role!)),
"registrationInformation": jsonEncode(RegistrationInformation.encode(registrationInformation)),
}
).catchError(convertPlatformException);
if (res == null) throw AssertionError("received null result from platform method registerNewGroupAdministrator");
final parsedResJson = jsonDecode(res);
return RegistrationSuccess.fromJSON(parsedResJson);
}