MarshalJSON encodes the field type as a UI keyword.
()
| 62 | |
| 63 | // MarshalJSON encodes the field type as a UI keyword. |
| 64 | func (t FieldType) MarshalJSON() ([]byte, error) { |
| 65 | return json.Marshal(t.String()) |
| 66 | } |
| 67 | |
| 68 | // FieldVisual defines how values are rendered in the UI. |
| 69 | type FieldVisual uint8 |