DatatypeStructure { mapping = ElmMapping { typeName = "RecordWithMultipleConstructors" , moduleName = Just "Codegen.SampleTypes" , encoderLocation = Just SymbolLocation { symbolName = "encodeRecordWithMultipleConstructors" , symbolModuleName = "Codegen.SampleTypes" } , decoderLocation = Just SymbolLocation { symbolName = "decodeRecordWithMultipleConstructors" , symbolModuleName = "Codegen.SampleTypes" } , args = [] , isTypeAlias = False , urlPiece = Nothing , queryParam = Nothing } , nParams = 0 , constructors = [ Constructor { constructorName = "FirstRecordConstructor" , constructorFields = [ ( Just "foo" , TyRef { tyCon = TyMapping ElmMapping { typeName = "Bool" , moduleName = Nothing , encoderLocation = Just SymbolLocation { symbolName = "bool" , symbolModuleName = "Json.Encode" } , decoderLocation = Just SymbolLocation { symbolName = "bool" , symbolModuleName = "Json.Decode" } , args = [] , isTypeAlias = False , urlPiece = Nothing , queryParam = Nothing } , tyArgs = [] } ) ] } , Constructor { constructorName = "SecondRecordConstructor" , constructorFields = [ ( Just "bar" , TyRef { tyCon = TyMapping ElmMapping { typeName = "Maybe" , moduleName = Just "Maybe" , encoderLocation = Just SymbolLocation { symbolName = "maybe" , symbolModuleName = "Json.Encode.Extra" } , decoderLocation = Just SymbolLocation { symbolName = "nullable" , symbolModuleName = "Json.Decode" } , args = [] , isTypeAlias = False , urlPiece = Nothing , queryParam = Nothing } , tyArgs = [ TyRef { tyCon = TyMapping ElmMapping { typeName = "Int" , moduleName = Nothing , encoderLocation = Just SymbolLocation { symbolName = "int" , symbolModuleName = "Json.Encode" } , decoderLocation = Just SymbolLocation { symbolName = "int" , symbolModuleName = "Json.Decode" } , args = [] , isTypeAlias = False , urlPiece = Nothing , queryParam = Nothing } , tyArgs = [] } ] } ) ] } ] }