Created
December 9, 2019 19:35
-
-
Save azamsharp/efa92399ef43342a47d77a5effe09e2f 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 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