equals method
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;
}
}