Tournament class

Tournament response example:

{
    "id": 3779,
    "name": "Балтийский берег. 5 игра",
    "lastEditDate": "2017-05-02T00:00:00+03:00",
    "dateStart": "2017-04-21T19:05:00+03:00",
    "dateEnd": "2017-04-25T19:00:00+03:00",
    "type": {
        "id": 3,
        "name": "Синхрон"
    },
    "season": "/seasons/50",
    "orgcommittee": [
        {
            "id": 23030,
            "name": "Марина",
            "patronymic": "",
            "surname": "Ножнина"
        }
    ],
    "synchData": {
        "dateRequestsAllowedTo": "2017-04-24T23:59:59+03:00",
        "resultFixesTo": "2017-05-08T23:59:59+03:00",
        "resultsRecapsTo": "2017-04-27T23:59:59+03:00",
        "allowAppealCancel": true,
        "allowNarratorErrorAppeal": false,
        "archive": true,
        "dateArchivedAt": "2017-05-12T23:59:59+03:00",
        "dateDownloadQuestionsFrom": "2017-04-20T00:00:00+03:00",
        "dateDownloadQuestionsTo": "2017-04-25T19:00:00+03:00",
        "hideQuestionsTo": "2017-04-25T23:59:59+03:00",
        "hideResultsTo": "2017-04-25T23:59:59+03:00",
        "allVerdictsDone": null,
        "instantControversial": false
    },
    "mainPayment": 2,
    "discountedPayment": 0,
    "discountedPaymentReason": "Максимальная плата, которая взимается с игровой площадки за все пять игр Турнира, равна 200 EUR. ",
    "currency": "e",
    "editors": [
        {
            "id": 32118,
            "name": "Алексей",
            "patronymic": "Владиславович",
            "surname": "Трефилов"
        },
        {
            "id": 32124,
            "name": "Мария",
            "patronymic": "Алексеевна",
            "surname": "Трефилова"
        }
    ],
    "difficultyForecast": 0,
    "maiiAegis": false,
    "maiiAegisUpdatedAt": "2021-09-19T05:29:28.938689Z",
    "maiiRating": false,
    "maiiRatingUpdatedAt": "2021-09-19T05:29:28.938689Z",
    "questionQty": {
        "1": 12,
        "2": 12,
        "3": 12
    }
}

Constructors

Tournament({required int id, required String name, required DateTime lastEditDate, required DateTime dateStart, required DateTime dateEnd, required Type? type, required String? season, required List<Player> orgCommittee, required SynchData? syncData, required int? mainPayment, required int? discountedPayment, required String? discountedPaymentReason, required String currency, required List<Player> editors, required int? difficultyForecast, required bool maiiAegis, required DateTime? maiiAegisUpdatedAt, required bool maiiRating, required DateTime? maiiRatingUpdatedAt, required Map<String, int>? questionQty})
Tournament.fromJson(Map<String, dynamic> json)
factory
Tournament.fromRawJson(String str)
factory

Properties

currency String
final
dateEnd DateTime
final
dateStart DateTime
final
difficultyForecast int?
final
discountedPayment int?
final
discountedPaymentReason String?
final
editors List<Player>
final
hashCode int
The hash code for this object.
no setteroverride
id int
final
lastEditDate DateTime
final
maiiAegis bool
final
maiiAegisUpdatedAt DateTime?
final
maiiRating bool
final
maiiRatingUpdatedAt DateTime?
final
mainPayment int?
final
name String
final
orgCommittee List<Player>
final
questionQty Map<String, int>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
season String?
final
syncData SynchData?
final
type Type?
final

Methods

copyWith({required int id, required String name, required DateTime lastEditDate, required DateTime dateStart, required DateTime dateEnd, required Type? type, required String? season, required List<Player> orgcommittee, required SynchData? synchData, required int? mainPayment, required int? discountedPayment, required String? discountedPaymentReason, required String currency, required List<Player> editors, required int? difficultyForecast, required bool maiiAegis, required DateTime? maiiAegisUpdatedAt, required bool maiiRating, required DateTime? maiiRatingUpdatedAt, required Map<String, int>? questionQty}) Tournament
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<Tournament>