update movie, tvshow

This commit is contained in:
2024-05-21 15:42:07 +02:00
parent 4b77501676
commit fda80b014b
4 changed files with 175 additions and 52 deletions
+9
View File
@@ -1,3 +1,5 @@
import 'dart:convert';
import 'package:intl/intl.dart';
import 'package:flutter/material.dart';
@@ -37,6 +39,13 @@ class Season {
seasonID: int.parse(json['seasonID']),
state: json['state']);
}
Map toJson() =>
{
'seasonNumber': seasonNumber.toString(),
'seasonID': seasonID.toString(),
'state': state,
};
}
class TVShow {