Uh oh!
There was an error while loading. Please reload this page.
[device_info_plus] make toMap() json compatible - #950
Conversation
…e in web_browser_info_test (1)
miquelbeltran
commented
Jul 14, 2022
Thank you! I am positive about this change. The only issue is that this would be a major version bump, so the platform plugin should be increased to 3.0.0, and all its dependencies as well. The change should be well documented in the respective Chanelogs. Any thoughts? @vbuberen |
vbuberen
commented
Jul 15, 2022
I am not sure why do we need it. |
@miquelbeltran @vbuberen |
miquelbeltran
commented
Jul 18, 2022
mmhhh... I am more inclined now to make toJson() a new method rather than modifying the toMap(), that way this is not going to be a breaking change. What do you think about that @iapicca ? |
@miquelbeltran |
This comment was marked as outdated.
This comment was marked as outdated.
miquelbeltran
commented
Jul 18, 2022
I am sorry, I am not sure anymore if we need this. If a user wants to serialize the contents of a |
iapicca
commented
Jul 18, 2022
@miquelbeltran |
miquelbeltran
commented
Jul 18, 2022
Yes, I agree with that. The Readme.md says:
If the serialization using toMap doesn't work because it uses enums, then it must be fixed! |
iapicca
commented
Jul 18, 2022
I did merge properly before, now it's up to date
@miquelbeltran extensionBaseDeviceInfoToJsonXonBaseDeviceInfo {
Map<String, Object?> Function() get toJson => toMap;
} |
miquelbeltran
commented
Jul 19, 2022
Thanks! can you cleanup the PR, and limit the changes to the web plugin implementation? |
miquelbeltran
left a comment
There was a problem hiding this comment.
All changes not related to the fix should be reverted
Uh oh!
There was an error while loading. Please reload this page.
iapicca
commented
Jul 24, 2022
@miquelbeltran a) remove b) keep
|
Description
updated: makes
toMapcompatible with json parsingRelated Issues
fix#949
Checklist
pubspec.yamlandCHANGELOG.md.///).flutter analyze) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?
TODO:
after publishing,
bump
device_info_plus_platform_interfaceto^2.3.1indevice_info_plus's pubspec