Character class

Constructors

Character({required int id, required String name, required String status, required String species, required String type, required String gender, required CharacterLocation origin, required CharacterLocation location, required String image, required List<String> episode, required String url, required DateTime created})
Character.fromJson(Map<String, dynamic> json)
factory

Properties

created DateTime
final
episode List<String>
final
gender String
final
hashCode int
The hash code for this object.
no setterinherited
id int
final
image String
final
location CharacterLocation
final
name String
final
origin CharacterLocation
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
species String
final
status String
final
type String
final
url String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited