This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
Video object lost when VodAsset json is parsed into VodAsset object #321
Labels
bug
Something isn't working
Describe the bug
When parsing a json of a vodAsset using the .fromJson method, the video object is lost and the resulting model instance has video = null.
There doesn't seem to be a 'serializedData' level to the json file as indicated in the constructor (?) that parses the json object (VodAsset.fromJson on line 127 of the model file)
This does not work:
This does work:
To Reproduce
Steps to reproduce the behavior:
var data = response.data;
var decodedData = jsonDecode(data);
vodAsset = VodAsset.fromJson(decodedData['getVodAsset']);
Expected behavior
Video object should not be null.
Screenshots
n/a
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
This did not used to happen.
The text was updated successfully, but these errors were encountered: