loadJson method
Implementation
Future<Object?> loadJson({required String entityName, required String id}) async {
var operation = _resolver.getOperation(entityName, 'load')!;
var result = await this._client().mutate(MutationOptions(
document: operation.operation,
operationName: operation.operationName,
variables: {"id": id},
));
if (result.hasException) {
throw GraphClientConfig.translateException(operation, id, result.exception!);
}
var list = result.data!["${entityName.artifactPlural}"] as List?;
return list?.firstOr();
}