createVariable method
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}');
}
}