operator == method
Overrides the equality operator.
Parameters:
other: The object to compare with.
Returns:
trueif the objects are equal,falseotherwise.
Implementation
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other is T) {
return other == rawValue;
}
return other is JsonField<T> &&
other.fieldName == fieldName &&
other.rawValue == rawValue;
}