createVariable method

Future<Response> createVariable(
  1. Map<String, dynamic> variableData
)

Create a variable

Implementation

Future<Response> createVariable(Map<String, dynamic> variableData) async {
  try {
    final response = await _dio.post(
      '/variables',
      data: variableData,
    );
    return response;
  } on DioException catch (e) {
    throw Exception('Failed to create variable: ${e.message}');
  }
}