TicketDetail.fromJson constructor

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

Implementation

TicketDetail.fromJson(Map<String, dynamic> json) {
  if (json["ticketTitle"] is String) {
    ticketTitle = json["ticketTitle"];
  }
  if (json["ticketContent"] is String) {
    ticketContent = json["ticketContent"];
  }
  if (json["problemTypeId"] is int) {
    problemTypeId = json["problemTypeId"];
  }
  if (json["plateformOriginId"] is int) {
    plateformOriginId = json["plateformOriginId"];
  }
  if (json["customerTicketReference"] is String) {
    customerTicketReference = json["customerTicketReference"];
  }
  if (json["countryCode"] is String) {
    countryCode = json["countryCode"];
  }
  if (json["zip"] is String) {
    zip = json["zip"];
  }
  if (json["v2ProductId"] is int) {
    v2ProductId = json["v2ProductId"];
  }
  if (json["productId"] is int) {
    productId = json["productId"];
  }
  if (json["platformId"] is int) {
    platformId = json["platformId"];
  }
  if (json["label"] is String) {
    label = json["label"];
  }
  if (json["id"] is int) {
    id = json["id"];
  }
  if (json["arckipelTicketReference"] is String) {
    arckipelTicketReference = json["arckipelTicketReference"];
  }
  if (json["statusId"] is int) {
    statusId = json["statusId"];
  }
  if (json["createdAt"] is int) {
    createdAt = json["createdAt"];
  }
  if (json["updatedAt"] is int) {
    updatedAt = json["updatedAt"];
  }
}