Skip to content

Instantly share code, notes, and snippets.

@azamsharp
Created December 9, 2019 19:35
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 azamsharp/efa92399ef43342a47d77a5effe09e2f to your computer and use it in GitHub Desktop.
Save azamsharp/efa92399ef43342a47d77a5effe09e2f to your computer and use it in GitHub Desktop.
class Movie {
final String title;
final String poster;
Movie({this.title, this.poster});
factory Movie.fromJson(Map<String, dynamic> json) {
return Movie(
title: json["Title"],
poster: json["Poster"]
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment