Closed Equartey closed 1 month ago
Added the dropped Flutter V1 Model.fromJson() decoding logic back to non-model embeds. Customer observed embedded non-model types not populating values after requests were made. This adds a fallback to previous logic.
Model.fromJson()
https://github.com/aws-amplify/amplify-flutter/issues/4872
Validated decoding against this schema in both Flutter V1 and V2.
type MyModel @model @auth(rules: [{ allow: owner }]) { id: ID! owner: String token: Token tokens: [Token] } type Token { externalId: String! value: String! }
yarn test
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description of changes
Added the dropped Flutter V1
Model.fromJson()
decoding logic back to non-model embeds. Customer observed embedded non-model types not populating values after requests were made. This adds a fallback to previous logic.Issue #, if available
https://github.com/aws-amplify/amplify-flutter/issues/4872
Description of how you validated changes
Validated decoding against this schema in both Flutter V1 and V2.
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.