Movie.fromJson constructor
Implementation
factory Movie.fromJson(Map<String, dynamic> json) {
return Movie(
id: json['_id'],
name: json['name'],
runtimeInMinutes: json['runtimeInMinutes'],
budgetInMillions: json['budgetInMillions'],
boxOfficeRevenueInMillions:
Utils.toDouble(json['boxOfficeRevenueInMillions']),
academyAwardNominations: json['academyAwardNominations'],
academyAwardWins: json['academyAwardWins'],
rottenTomatoesScore: Utils.toDouble(json['rottenTomatoesScore']),
);
}