Player class

Player response example:

{
    "id": 27822,
    "name": "Михаил",
    "patronymic": "Владимирович",
    "surname": "Савченков"
}

Constructors

Player({required int id, required String name, required String? patronymic, required String surname})
Player.fromJson(Map<String, dynamic> json)
factory
Player.fromRawJson(String str)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
id int
final
name String
final
patronymic String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
surname String
final

Methods

copyWith({required int id, required String name, required String? patronymic, required String surname}) Player
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<Player>