Created
July 15, 2022 03:41
-
-
Save lexuanquynh/9c40d87ba15df812b57a520556d409d2 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 data = "{\"name\": \"Tennis ball\"}".data(using: .utf8)! | |
repository.save(saveClass: DogToy.self, jsonData: data, update: false) { result in | |
switch result { | |
case .success: | |
break | |
case .failure: | |
break | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment