-
-
Save sbis04/c7abd98cf4cf398f59a5b5989c615409 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class VideoData { | |
VideoData({ | |
this.data, | |
}); | |
Data data; | |
factory VideoData.fromRawJson(String str) => | |
VideoData.fromJson(json.decode(str)); | |
String toRawJson() => json.encode(toJson()); | |
factory VideoData.fromJson(Map<String, dynamic> json) => VideoData( | |
data: json["data"] == null ? null : Data.fromJson(json["data"]), | |
); | |
Map<String, dynamic> toJson() => { | |
"data": data == null ? null : data.toJson(), | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment