Skip to content

Instantly share code, notes, and snippets.

@rintoandrews90
Last active August 17, 2019 05:53
Show Gist options
  • Save rintoandrews90/1f2f97c7a5817e0d4d0bcddab821433b to your computer and use it in GitHub Desktop.
Save rintoandrews90/1f2f97c7a5817e0d4d0bcddab821433b to your computer and use it in GitHub Desktop.
Convert to JSON form Model
let json = try? JSONEncoder().encode(model)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment