equalsDeep method

  1. @override
bool equalsDeep(
  1. FhirBase? o
)
override

Performs a deep comparison between two instances.

Implementation

@override
bool equalsDeep(FhirBase? o) {
  if (o is! DataRequirementCodeFilter) {
    return false;
  }
  if (identical(this, o)) return true;
  if (runtimeType != o.runtimeType) return false;
  if (!equalsDeepWithNull(
    id,
    o.id,
  )) {
    return false;
  }
  if (!listEquals<FhirExtension>(
    extension_,
    o.extension_,
  )) {
    return false;
  }
  if (!equalsDeepWithNull(
    path,
    o.path,
  )) {
    return false;
  }
  if (!equalsDeepWithNull(
    searchParam,
    o.searchParam,
  )) {
    return false;
  }
  if (!equalsDeepWithNull(
    valueSet,
    o.valueSet,
  )) {
    return false;
  }
  if (!listEquals<Coding>(
    code,
    o.code,
  )) {
    return false;
  }
  return true;
}