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 Map<String, String> origin,
  8. required Map<String, String> location,
  9. required String image,
  10. required List<String> episode,
  11. required String url,
})

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});