TournamentDetails class Null safety

Response example:

{
"idtournament": "5021",
"name": "Синхрон-lite. Выпуск XXII",
"town": "Варшава",
"long_name": "Синхрон-lite. Выпуск XXII",
"date_start": "2019-02-08 18:55:00",
"date_end": "2019-02-12 18:55:00",
"tour_count": "3",
"tour_questions": "12",
"tour_ques_per_tour": "12",
"questions_total": "36",
"type_name": "Синхрон",
"main_payment_value": "4",
"main_payment_currency": "$",
"discounted_payment_value": "0",
"discounted_payment_currency": "",
"discounted_payment_reason": "Школьные и молодёжные команды.",
"tournament_in_rating": "1",
"date_requests_allowed_to": "2019-02-11 23:59:59",
"comment": "Комментарий",
"site_url": "https://chgk-is.livejournal.com/",
"archive": "1",
"date_archived_at": "2019-03-01 23:59:59",
"db_tags": ["tag"]
}
Annotations

Constructors

TournamentDetails({required String idTournament, String? name, String? town, String? longName, DateTime? dateStart, DateTime? dateEnd, String? tourCount, String? tourQuestions, String? tourQuesPerTour, String? questionsTotal, String? typeName, String? mainPaymentValue, String? mainPaymentCurrency, String? discountedPaymentValue, String? discountedPaymentCurrency, String? discountedPaymentReason, String? tournamentInRating, DateTime? dateRequestsAllowedTo, String? comment, String? siteUrl, String? archive, DateTime? dateArchivedAt, List<String>? dbTags})
const
TournamentDetails.fromJson(String str)
Decodes TournamentDetails object from json string
factory
TournamentDetails.fromMap(Map<String, dynamic> json)
Decodes TournamentDetails object from json map
factory

Properties

archive String?
final
comment String?
final
dateArchivedAt DateTime?
final
dateEnd DateTime?
final
dateRequestsAllowedTo DateTime?
final
dateStart DateTime?
final
dbTags List<String>?
final
discountedPaymentCurrency String?
final
discountedPaymentReason String?
final
discountedPaymentValue String?
final
hashCode int
The hash code for this object.
read-only, override
idTournament String
final
longName String?
final
mainPaymentCurrency String?
final
mainPaymentValue String?
final
name String?
final
questionsTotal String?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
siteUrl String?
final
tourCount String?
final
tournamentInRating String?
final
tourQuesPerTour String?
final
tourQuestions String?
final
town String?
final
typeName String?
final

Methods

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

Operators

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