getServiceConfig method

Future<ServiceConfig> getServiceConfig({
  1. required String serviceName,
})

Implementation

Future<ServiceConfig> getServiceConfig({required String serviceName}) async {
  final configResult = await _flutterTerraApi.getServiceConfig(appName, serviceName);
  if (configResult.isSuccess != true) {
    throw Exception(configResult.error);
  }

  if (configResult.serviceConfig == null) {
    throw Exception("Unknown Exception");
  }

  return configResult.serviceConfig!;
}