class DashboardCount {
  Data? data;
  String? message;
  String? title;
  String? innerMessage;
  int? responseCode;
  bool? isSuccess;

  DashboardCount({this.data, this.message, this.title, this.innerMessage, this.responseCode, this.isSuccess});

  DashboardCount.fromJson(Map<String, dynamic> json) {
    data = json['data'] != null ? Data.fromJson(json['data']) : null;
    message = json['message'];
    title = json['title'];
    innerMessage = json['innerMessage'];
    responseCode = json['responseCode'];
    isSuccess = json['isSuccess'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    data['message'] = message;
    data['title'] = title;
    data['innerMessage'] = innerMessage;
    data['responseCode'] = responseCode;
    data['isSuccess'] = isSuccess;
    return data;
  }
}

class Data {
  int? countOpen;
  int? countInprogress;
  int? countComplete;
  int? countClose;
  int? countCanceled;
  int? countAcknowledge;
  int? countHighPriority;
  int? countOverdue;
  int? countUnAssigned;

  Data({this.countOpen, this.countInprogress,this.countCanceled, this.countComplete, this.countAcknowledge, this.countHighPriority, this.countOverdue, this.countClose, this.countUnAssigned});

  Data.fromJson(Map<String, dynamic> json) {
    countOpen = json['countOpen'] ?? 0;
    countInprogress = json['countInprogress'] ?? 0;
    countComplete = json['countComplete'] ?? 0;
    countCanceled = json['countCanceled'] ?? 0;
    countClose = json['countClose'] ?? 0;
    countAcknowledge = json['countAcknowledge'] ?? 0;
    countHighPriority = json['countHighPriority'] ?? 0;
    countOverdue = json['countOverdue'] ?? 0;
    countUnAssigned = json['countUnAssigned'] ?? 0;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['countOpen'] = countOpen;
    data['countInprogress'] = countInprogress;
    data['countComplete'] = countComplete;
    data['countCanceled'] = countCanceled;
    data['countClose'] = countClose;
    data['countAcknowledge'] = countAcknowledge;
    data['countHighPriority'] = countHighPriority;
    data['countOverdue'] = countOverdue;
    data['countUnAssigned'] = countUnAssigned;
    return data;
  }
}
