(ctx context.Context, obj interface{})
| 6772 | } |
| 6773 | |
| 6774 | func (ec *executionContext) unmarshalInputAddModelInput(ctx context.Context, obj interface{}) (model.AddModelInput, error) { |
| 6775 | var it model.AddModelInput |
| 6776 | asMap := map[string]interface{}{} |
| 6777 | for k, v := range obj.(map[string]interface{}) { |
| 6778 | asMap[k] = v |
| 6779 | } |
| 6780 | |
| 6781 | fieldsInOrder := [...]string{"type", "huggingFace"} |
| 6782 | for _, k := range fieldsInOrder { |
| 6783 | v, ok := asMap[k] |
| 6784 | if !ok { |
| 6785 | continue |
| 6786 | } |
| 6787 | switch k { |
| 6788 | case "type": |
| 6789 | ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) |
| 6790 | data, err := ec.unmarshalNModelType2githubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐModelType(ctx, v) |
| 6791 | if err != nil { |
| 6792 | return it, err |
| 6793 | } |
| 6794 | it.Type = data |
| 6795 | case "huggingFace": |
| 6796 | ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("huggingFace")) |
| 6797 | data, err := ec.unmarshalOHuggingFaceInput2ᚖgithubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐHuggingFaceInput(ctx, v) |
| 6798 | if err != nil { |
| 6799 | return it, err |
| 6800 | } |
| 6801 | it.HuggingFace = data |
| 6802 | } |
| 6803 | } |
| 6804 | |
| 6805 | return it, nil |
| 6806 | } |
| 6807 | |
| 6808 | func (ec *executionContext) unmarshalInputAddPipelineDeploymentInput(ctx context.Context, obj interface{}) (model.AddPipelineDeploymentInput, error) { |
| 6809 | var it model.AddPipelineDeploymentInput |
no test coverage detected