-
-
Notifications
You must be signed in to change notification settings - Fork 875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add PFObject.fromDictionary
to create an object from dictionary
#1834
Conversation
Thanks for opening this pull request!
|
@mtrezza Looks like the CI is broken 8 Watch Series 8 got removed from Xcode 15/16 |
What do you suggest regarding the CI? |
Finding a common Watch Series against all toolchains. I’ll try watch 7 or 9, if they don’t work we might have to remove Xcode 14 support |
Wouldn't it be enough to only support the latest Xcode version? I believe the latest Xcode version is usually required to run a simulator with the latest iOS version. So developers are very likely to adopt new Xcode releases quickly. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1834 +/- ##
===========================================
+ Coverage 64.24% 82.66% +18.42%
===========================================
Files 201 282 +81
Lines 23233 30734 +7501
===========================================
+ Hits 14926 25407 +10481
+ Misses 8307 5327 -2980 ☔ View full report in Codecov by Sentry. |
@mtrezza I'll create a separate PR to remove Xcode 14 support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the method name could be shortened to PFObject.fromDictionary
, since it's clear that as a constructor method of PFObject it instantiates an object. Analogous to Parse JS SDK's Parse.Object.fromJSON.
PFObject.objectFromDictionary
PFObject.fromDictionary
PFObject.fromDictionary
PFObject.fromDictionary
to create an object from dictionary
# [5.1.0](5.0.0...5.1.0) (2025-01-28) ### Features * Add `PFObject.fromDictionary` to create an object from dictionary ([#1834](#1834)) ([e197cfa](e197cfa))
🎉 This change has been released in version 5.1.0 |
New Pull Request Checklist
Issue Description
There is no way easy way to convert a dictionary to a PFObject. This is useful if you return a json server side and want to decode it client side. Analogous to
Parse.Object.fromJSON
in the JS SDKApproach
Add a wrapper around the private method
_objectFromDictionary
TODOs before merging