getById method

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

Implementation

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

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