-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql -- https://github.com/dillonkearns/elm-graphql module Normalize.Union.CharacterUnion exposing (onDroid, onHuman_, selection) import Graphql.Field as Field exposing (Field) import Graphql.Internal.Builder.Argument as Argument exposing (Argument) import Graphql.Internal.Builder.Object as Object import Graphql.Internal.Encode as Encode exposing (Value) import Graphql.OptionalArgument exposing (OptionalArgument(..)) import Graphql.SelectionSet exposing (FragmentSelectionSet(..), SelectionSet(..)) import Json.Decode as Decode import Normalize.InputObject import Normalize.Interface import Normalize.Object import Normalize.Scalar import Normalize.Union selection : (Maybe typeSpecific -> constructor) -> List (FragmentSelectionSet typeSpecific Normalize.Union.CharacterUnion) -> SelectionSet constructor Normalize.Union.CharacterUnion selection constructor typeSpecificDecoders = Object.unionSelection typeSpecificDecoders constructor onHuman_ : SelectionSet decodesTo Normalize.Object.Human_ -> FragmentSelectionSet decodesTo Normalize.Union.CharacterUnion onHuman_ (SelectionSet fields decoder) = FragmentSelectionSet "_human" fields decoder onDroid : SelectionSet decodesTo Normalize.Object.Droid -> FragmentSelectionSet decodesTo Normalize.Union.CharacterUnion onDroid (SelectionSet fields decoder) = FragmentSelectionSet "Droid" fields decoder