GetValueKey returns the value field name for JSON marshaling. Defaults to "value" if not explicitly set via Meta("oneof:value:field").
()
| 667 | // GetValueKey returns the value field name for JSON marshaling. |
| 668 | // Defaults to "value" if not explicitly set via Meta("oneof:value:field"). |
| 669 | func (u *Union) GetValueKey() string { |
| 670 | if u.ValueKey != "" { |
| 671 | return u.ValueKey |
| 672 | } |
| 673 | return "value" |
| 674 | } |
| 675 | |
| 676 | // QualifiedTypeName returns the qualified type name for the given data type. |
| 677 | // The qualified type name includes the name of the type of the elements of |
no outgoing calls