We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In googleapis 0.9.1, serialization to Json does not correctly convert items to Json. Is this intentional? The same goes for Channel's contentDetails.
VideoListResponse.fromJson(core.Map _json) : this( etag: _json.containsKey('etag') ? _json['etag'] as core.String : null, eventId: _json.containsKey('eventId') ? _json['eventId'] as core.String : null, items: _json.containsKey('items') ? (_json['items'] as core.List) .map((value) => Video.fromJson( value as core.Map<core.String, core.dynamic>)) .toList() : null, ... ); core.Map<core.String, core.dynamic> toJson() => { if (etag != null) 'etag': etag!, if (eventId != null) 'eventId': eventId!, // This should probably be something like `items.map((item) => item.toJson())` if (items != null) 'items': items!, ... }; }
The text was updated successfully, but these errors were encountered:
This is by design, but the design should probably be changed.
Work-around: jsonDecode(jsonEncode(object))
jsonDecode(jsonEncode(object))
Sorry, something went wrong.
Thanks for the workaround!
listUsers
Workaround for serialization
bda678a
See: google/googleapis.dart#438 (comment)
No branches or pull requests
In googleapis 0.9.1, serialization to Json does not correctly convert items to Json. Is this intentional? The same goes for Channel's contentDetails.
The text was updated successfully, but these errors were encountered: