Character constructor

Character({
  1. required int id,
  2. required String name,
  3. required String status,
  4. required String species,
  5. required String type,
  6. required String gender,
  7. required CharacterLocation origin,
  8. required CharacterLocation location,
  9. required String image,
  10. required List<String> episode,
  11. required String url,
  12. required DateTime created,
})

Implementation

Character({
  required this.id,
  required this.name,
  required this.status,
  required this.species,
  required this.type,
  required this.gender,
  required this.origin,
  required this.location,
  required this.image,
  required this.episode,
  required this.url,
  required this.created,
});