ListTicket.fromJson constructor

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

Implementation

ListTicket.fromJson(Map<String, dynamic> json) {
  if (json["status"] is List) {
    status = json["status"] == null
        ? null
        : (json["status"] as List).map((e) => Status.fromJson(e)).toList();
  }
  if (json["values"] is List) {
    values = json["values"] == null
        ? null
        : (json["values"] as List).map((e) => Ticket.fromJson(e)).toList();
  }
}