-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql -- https://github.com/dillonkearns/elm-graphql module Github.Union.PushAllowanceActor exposing (onTeam, onUser, selection) import Github.InputObject import Github.Interface import Github.Object import Github.Scalar import Github.Union 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 selection : (Maybe typeSpecific -> constructor) -> List (FragmentSelectionSet typeSpecific Github.Union.PushAllowanceActor) -> SelectionSet constructor Github.Union.PushAllowanceActor selection constructor typeSpecificDecoders = Object.unionSelection typeSpecificDecoders constructor onUser : SelectionSet decodesTo Github.Object.User -> FragmentSelectionSet decodesTo Github.Union.PushAllowanceActor onUser (SelectionSet fields decoder) = FragmentSelectionSet "User" fields decoder onTeam : SelectionSet decodesTo Github.Object.Team -> FragmentSelectionSet decodesTo Github.Union.PushAllowanceActor onTeam (SelectionSet fields decoder) = FragmentSelectionSet "Team" fields decoder