summaryrefslogtreecommitdiff
path: root/lib/models/popular_credit.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models/popular_credit.dart')
-rw-r--r--lib/models/popular_credit.dart19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/models/popular_credit.dart b/lib/models/popular_credit.dart
new file mode 100644
index 0000000..568beb0
--- /dev/null
+++ b/lib/models/popular_credit.dart
@@ -0,0 +1,19 @@
+class PopularCredit {
+ String? name;
+ String? character;
+ String? profilePath;
+
+ PopularCredit({
+ this.name,
+ this.character,
+ this.profilePath,
+ });
+
+ factory PopularCredit.fromMap(Map<String, dynamic> map) {
+ return PopularCredit(
+ name: map['name'],
+ character: map['character'],
+ profilePath: map['profile_path'],
+ );
+ }
+}