Created
November 28, 2024 17:30
-
-
Save vbalagovic/8cb869d4cddc60dda502fe29a1ec1981 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
@freezed | |
class Movie with _$Movie { | |
const factory Movie({ | |
required String id, | |
required String title, | |
required String year, | |
required String plot, | |
String? poster, | |
}) = _Movie; | |
factory Movie.fromJson(Map<String, dynamic> json) => _$MovieFromJson(json); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment