(_ []string)
| 1042 | } |
| 1043 | |
| 1044 | func (p ProjectField) ExportData(_ []string) map[string]any { |
| 1045 | v := map[string]any{ |
| 1046 | "id": p.ID(), |
| 1047 | "name": p.Name(), |
| 1048 | "type": p.Type(), |
| 1049 | } |
| 1050 | // Emulate omitempty |
| 1051 | if opts := p.Options(); len(opts) != 0 { |
| 1052 | options := make([]map[string]any, len(opts)) |
| 1053 | for i, opt := range opts { |
| 1054 | options[i] = opt.ExportData(nil) |
| 1055 | } |
| 1056 | v["options"] = options |
| 1057 | } |
| 1058 | return v |
| 1059 | } |
| 1060 | |
| 1061 | type ProjectFields struct { |
| 1062 | TotalCount int |