Team class
Team response example:
{
"id": 26777,
"name": "Утечка мозгов",
"town": {
"id": 197,
"name": "Минск",
"region": {
"id": 84,
"name": "Минск",
"country": {
"id": 5,
"name": "Беларусь"
}
},
"country": {
"id": 5,
"name": "Беларусь"
}
}
}
Constructors
- Team({required int id, required String name, required Town? town})
-
Team.fromJson(Map<
String, dynamic> json) -
factory
- Team.fromRawJson(String str)
-
factory
Properties
Methods
-
copyWith(
{required int id, required String name, required Town? town}) → Team -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toRawJson(
) → String -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
decodeList(
List list) → Iterable< Team>