equals method

bool equals(
  1. dynamic other
)

Compares the Model with another Model using the DeepCollectionEquality and returns true if they are equal.

Implementation

bool equals(dynamic other) {
  if (other is Model) {
    return const DeepCollectionEquality().equals(other.toJson(), toJson());
  } else {
    return false;
  }
}