Created
December 9, 2017 01:50
-
-
Save dustinlacewell-wk/590a000f579904694535fcd03a41b4d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Link = | |
{ Rel: string; Url: string } | |
static member FromJson(x:JsonObject) = | |
jsonDecoder { | |
let ps = JsonObject.toMap x | |
return { Rel = string (ps.["rel"]); Url = string ps.["url"] } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment