getAllRoles method
Implementation
Future<List<Role>> getAllRoles(String sdkId) async {
final res = await _methodChannel.invokeMethod<String>(
'RoleApi.getAllRoles',
{
"sdkId": sdkId,
}
);
if (res == null) throw AssertionError("received null result from platform method getAllRoles");
final parsedResJson = jsonDecode(res);
return (parsedResJson as List<dynamic>).map((x1) => Role.fromJSON(x1) ).toList();
}