Skip to content

Instantly share code, notes, and snippets.

@sbis04
Created February 17, 2021 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbis04/c7abd98cf4cf398f59a5b5989c615409 to your computer and use it in GitHub Desktop.
Save sbis04/c7abd98cf4cf398f59a5b5989c615409 to your computer and use it in GitHub Desktop.
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