method
NonNullInput.MarshalJSON
MarshalJSON implements json.Marshaler and rejects an encoded JSON null.
Returns
The declared result.
([]byte, error)Full signature
func (input NonNullInput[T]) MarshalJSON() (
[]byte,
error,
)Related types
NonNullInputA write-only generated mutation value that refuses to encode JSON null.