class TicketChatDisplayResponse { List? ticket; int? error; String? message; TicketChatDisplayResponse({this.ticket, this.error, this.message}); TicketChatDisplayResponse.fromJson(Map json) { if (json['ticket'] != null) { ticket = []; json['ticket'].forEach((v) { ticket!.add(new Ticket.fromJson(v)); }); } error = json['error']; message = json['message']; } Map toJson() { final Map data = new Map(); if (this.ticket != null) { data['ticket'] = this.ticket!.map((v) => v.toJson()).toList(); } data['error'] = this.error; data['message'] = this.message; return data; } } class Ticket { String? tid; String? datetime; String? msg; String? type; Ticket({this.tid, this.datetime, this.msg, this.type}); Ticket.fromJson(Map json) { tid = json['tid']; datetime = json['datetime']; msg = json['msg']; type = json['type']; } Map toJson() { final Map data = new Map(); data['tid'] = this.tid; data['datetime'] = this.datetime; data['msg'] = this.msg; data['type'] = this.type; return data; } }