equalsValue method

bool equalsValue(
  1. DashboardResponseSearchModel value,
  2. Object? other, [
  3. MapperContainer? container
])
inherited

Implementation

bool equalsValue(T value, Object? other, [MapperContainer? container]) {
  if (identical(value, other)) {
    return true;
  }
  try {
    if (!isFor(other)) return false;
    var context = MappingContext(
      container: container,
      args: () => value.runtimeType.args
          .map((t) => t == UnresolvedType ? dynamic : t)
          .toList(),
    );
    return equals(value, other as T, context);
  } catch (e, stacktrace) {
    Error.throwWithStackTrace(
      MapperException.chain(MapperMethod.equals, '[$value]', e),
      stacktrace,
    );
  }
}