//------------------------------------------------------------------------------ // 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 InnerStruct type [] module InnerStruct = /// Parse from a JSON node. let jsonParse (node : System.Text.Json.Nodes.JsonNode) : InnerStruct = let arg_0 = (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 = arg_0 } namespace ConsumePlugin /// Module containing JSON parsing methods for the ArrayOfInnerStruct type [] module ArrayOfInnerStruct = /// Parse from a JSON node. let jsonParse (node : System.Text.Json.Nodes.JsonNode) : ArrayOfInnerStruct = let arg_0 = (match node.["b"] with | null -> raise ( System.Collections.Generic.KeyNotFoundException ( sprintf "Required key '%s' not found on JSON object" ("b") ) ) | v -> v) .AsArray () |> Seq.cast |> Seq.map (fun elt -> InnerStruct.jsonParse elt) |> Array.ofSeq { B = arg_0 }