getById method

Future<ResponseItemDTO<ProfileDTO>> getById({
  1. String? id,
})

Implementation

Future<ResponseItemDTO<ProfileDTO>> getById({String? id}) async {
  final response = await _http!.request(
    requestType: RequestType.get,
    path: '/dashboard/users',
    param: id,
  );

  return ResponseItemDTO<ProfileDTO>(
    response: response,
    fromJson: ProfileDTO.fromJson,
  );
}