Player class Null safety

Response example:

{
"idplayer": "27822",
"surname": "Савченков",
"name": "Михаил",
"patronymic": "Владимирович",
"comment": "Комментарий",
"db_chgk_info_tag": "msavchenkov"
}
Annotations

Constructors

Player({required String idPlayer, String? surname, String? name, String? patronymic, String? comment, String? dbChgkInfoTag})
const
Player.fromJson(String str)
Decodes Player object from json string
factory
Player.fromMap(Map<String, dynamic> json)
Decodes Player object from json map
factory

Properties

comment String?
final
dbChgkInfoTag String?
final
hashCode int
The hash code for this object.
read-only, override
idPlayer String
final
name String?
final
patronymic String?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
surname String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() String
Encodes Player object to json String
toMap() Map<String, dynamic>
Encodes Player object to json map
toString() String
A string representation of this object.
override

Operators

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