TicketResponse.fromJson constructor

TicketResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TicketResponse.fromJson(Map<String, dynamic> json) => TicketResponse(
    deviceToken: json['deviceToken'],
    tickets:
        (json['tickets'] as List).map((i) => Ticket.fromJson(i)).toList(),
    associationColor: json['verbundColor'],
    ticketCover: TicketCover.fromJson(json['ticketHuelle']),
    verificationImage: VerificationImage.fromJson(json['lichtbild']),
    ticketTexts: TicketTexts.fromJson(json['ticketTexte']));