TournamentAppeal.fromMap constructor
Decodes TournamentAppeal object from json map
Implementation
factory TournamentAppeal.fromMap(Map<String, dynamic> json) =>
TournamentAppeal(
type: json['type'] == null ? null : typeValues.map[json['type']],
questionNumber:
json['question_number'] == null ? null : json['question_number'],
issuedAt: json['issued_at'] == null
? null
: DateTime.parse(json['issued_at']),
status:
json['status'] == null ? null : statusValues.map[json['status']],
appeal: json['appeal'] == null ? null : json['appeal'],
comment: json['comment'] == null ? null : json['comment'],
resolvedAt: json['resolved_at'] == null
? null
: DateTime.parse(json['resolved_at']),
answer: json['answer'] == null ? null : json['answer'],
);