//------------------------------------------------------------------------------ // This code was generated by myriad. // Changes to this file will be lost when the code is regenerated. //------------------------------------------------------------------------------ namespace ConsumePlugin /// Module containing JSON parsing methods for the InnerType type [] [] module InnerType = /// Parse from a JSON node. let jsonParse (node : System.Text.Json.Nodes.JsonNode) : InnerType = let Thing = (match node.[(Literals.something)] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ((Literals.something)) ) ) | v -> v) .AsValue() .GetValue () { Thing = Thing } namespace ConsumePlugin /// Module containing JSON parsing methods for the JsonRecordType type [] [] module JsonRecordType = /// Parse from a JSON node. let jsonParse (node : System.Text.Json.Nodes.JsonNode) : JsonRecordType = let F = (match node.["f"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("f") ) ) | v -> v) .AsArray () |> Seq.map (fun elt -> elt.AsValue().GetValue ()) |> Array.ofSeq let E = (match node.["e"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("e") ) ) | v -> v) .AsArray () |> Seq.map (fun elt -> elt.AsValue().GetValue ()) |> Array.ofSeq let D = InnerType.jsonParse ( match node.["d"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("d") ) ) | v -> v ) let C = (match node.["hi"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("hi") ) ) | v -> v) .AsArray () |> Seq.map (fun elt -> elt.AsValue().GetValue ()) |> List.ofSeq let B = (match node.["another-thing"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("another-thing") ) ) | v -> v) .AsValue() .GetValue () let A = (match node.["a"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("a") ) ) | v -> v) .AsValue() .GetValue () { A = A B = B C = C D = D E = E F = F } namespace ConsumePlugin /// Module containing JSON parsing extension members for the ToGetExtensionMethod type [] module ToGetExtensionMethodJsonParseExtension = /// Extension methods for JSON parsing type ToGetExtensionMethod with /// Parse from a JSON node. static member jsonParse (node : System.Text.Json.Nodes.JsonNode) : ToGetExtensionMethod = let Whiskey = System.Numerics.BigInteger.Parse (node.["whiskey"].ToJsonString ()) let Victor = (match node.["victor"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("victor") ) ) | v -> v) .AsValue() .GetValue () let Uniform = (match node.["uniform"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("uniform") ) ) | v -> v) .AsValue() .GetValue () let Tango = (match node.["tango"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("tango") ) ) | v -> v) .AsValue() .GetValue () let Quebec = (match node.["quebec"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("quebec") ) ) | v -> v) .AsValue() .GetValue () let Papa = (match node.["papa"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("papa") ) ) | v -> v) .AsValue() .GetValue () let Oscar = (match node.["oscar"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("oscar") ) ) | v -> v) .AsValue() .GetValue () let November = (match node.["november"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("november") ) ) | v -> v) .AsValue() .GetValue () let Mike = (match node.["mike"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("mike") ) ) | v -> v) .AsValue() .GetValue () let Lima = (match node.["lima"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("lima") ) ) | v -> v) .AsValue() .GetValue () let Kilo = (match node.["kilo"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("kilo") ) ) | v -> v) .AsValue() .GetValue () let Juliette = (match node.["juliette"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("juliette") ) ) | v -> v) .AsValue() .GetValue () let India = (match node.["india"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("india") ) ) | v -> v) .AsValue() .GetValue () let Hotel = (match node.["hotel"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("hotel") ) ) | v -> v) .AsValue() .GetValue () let Golf = (match node.["golf"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("golf") ) ) | v -> v) .AsValue() .GetValue () let Foxtrot = (match node.["foxtrot"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("foxtrot") ) ) | v -> v) .AsValue() .GetValue () let Echo = (match node.["echo"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("echo") ) ) | v -> v) .AsValue() .GetValue () let Delta = (match node.["delta"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("delta") ) ) | v -> v) .AsValue() .GetValue () let Charlie = (match node.["charlie"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("charlie") ) ) | v -> v) .AsValue() .GetValue () let Bravo = (match node.["bravo"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("bravo") ) ) | v -> v) .AsValue() .GetValue () |> System.Uri let Alpha = (match node.["alpha"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("alpha") ) ) | v -> v) .AsValue() .GetValue () { Alpha = Alpha Bravo = Bravo Charlie = Charlie Delta = Delta Echo = Echo Foxtrot = Foxtrot Golf = Golf Hotel = Hotel India = India Juliette = Juliette Kilo = Kilo Lima = Lima Mike = Mike November = November Oscar = Oscar Papa = Papa Quebec = Quebec Tango = Tango Uniform = Uniform Victor = Victor Whiskey = Whiskey }