toMap method

Map<String, dynamic> toMap()

Encodes TournamentAppeal object to json map

Implementation

Map<String, dynamic> toMap() => {
      'type': type == null ? null : typeValues.reverse[type],
      'question_number': questionNumber == null ? null : questionNumber,
      'issued_at': issuedAt == null ? null : issuedAt?.toIso8601String(),
      'status': status == null ? null : statusValues.reverse[status],
      'appeal': appeal == null ? null : appeal,
      'comment': comment == null ? null : comment,
      'resolved_at':
          resolvedAt == null ? null : resolvedAt?.toIso8601String(),
      'answer': answer == null ? null : answer,
    };