public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is SearchShiftsResponse other && ((Context == null && other.Context == null) || (Context?.Equals(other.Context) == true)) && ((Shifts == null && other.Shifts == null) || (Shifts?.Equals(other.Shifts) == true)) && ((Cursor == null && other.Cursor == null) || (Cursor?.Equals(other.Cursor) == true)) && ((Errors == null && other.Errors == null) || (Errors?.Equals(other.Errors) == true))); }