Created
November 4, 2017 17:36
-
-
Save pgpt10/eae13413e4d82c6526abd3024763edba to your computer and use it in GitHub Desktop.
This file contains 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
let photoObject = Photo(title: "Hibiscus", url: URL(string: "https://www.flowers.com/hibiscus")!, isSample: false, metaData: ["color" : "red"], type: .flower, size: Size(width: 200, height: 200)) | |
let encodedData = try? JSONEncoder().encode(photoObject) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment