Ticket1.fromJson constructor

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

Implementation

Ticket1.fromJson(Map<String, dynamic> json) {
  if (json["id"] is int) {
    id = json["id"];
  }
  if (json["ticketTitle"] is String) {
    ticketTitle = json["ticketTitle"];
  }
  if (json["ticketContent"] is String) {
    ticketContent = json["ticketContent"];
  }
  if (json["createdAt"] is int) {
    createdAt = json["createdAt"];
  }
  if (json["updatedAt"] is int) {
    updatedAt = json["updatedAt"];
  }
  countryCode = json["countryCode"];
  if (json["zip"] is String) {
    zip = json["zip"];
  }
  if (json["arckipelTicketReference"] is String) {
    arckipelTicketReference = json["arckipelTicketReference"];
  }
  if (json["customerTicketReference"] is String) {
    customerTicketReference = json["customerTicketReference"];
  }
}