()
| 395 | } |
| 396 | |
| 397 | func (e *Encoding) MarshalJSON() ([]byte, error) { |
| 398 | return marshalJSON([]jsonFieldInfo{ |
| 399 | {"contentType", e.ContentType, omitEmpty}, |
| 400 | {"headers", e.Headers, omitEmpty}, |
| 401 | {"style", e.Style, omitEmpty}, |
| 402 | {"explode", e.Explode, omitEmpty}, |
| 403 | {"allowReserved", e.AllowReserved, omitEmpty}, |
| 404 | }, e.Extensions) |
| 405 | } |
| 406 | |
| 407 | // MediaType object provides schema and examples for the media type identified |
| 408 | // by its key. |
nothing calls this directly
no test coverage detected