getJob method

Future getJob(
  1. String id
)

Implementation

Future<dynamic> getJob(String id) async {
  Response response = await _dio.get(
    '/v1/jobs/$id',
    options: options,
  );
  if (response.data['data'] != null) {
    return response.data['data'];
  } else {
    return null;
  }
}