class DashboardDetail { List data; int totalRows; String message; String title; String innerMessage; int responseCode; bool isSuccess; DashboardDetail( {this.data, this.totalRows, this.message, this.title, this.innerMessage, this.responseCode, this.isSuccess}); DashboardDetail.fromJson(Map json) { if (json['data'] != null) { data = []; json['data'].forEach((v) { data.add(Data.fromJson(v)); }); } totalRows = json['totalRows']; message = json['message']; title = json['title']; innerMessage = json['innerMessage']; responseCode = json['responseCode']; isSuccess = json['isSuccess']; } Map toJson() { final Map data = {}; if (this.data != null) { data['data'] = this.data.map((v) => v.toJson()).toList(); } data['totalRows'] = totalRows; data['message'] = message; data['title'] = title; data['innerMessage'] = innerMessage; data['responseCode'] = responseCode; data['isSuccess'] = isSuccess; return data; } } class Data { int id; String typeTransaction; String transactionDate; String statusName; String priorityName; bool isHighPriority; String assetName; String assetNumber; String requestTypeName; String requestNo; Data( {this.id, this.typeTransaction, this.transactionDate, this.statusName, this.priorityName, this.isHighPriority, this.assetName, this.assetNumber, this.requestTypeName, this.requestNo}); Data.fromJson(Map json) { id = json['id']; typeTransaction = json['typeTransaction']; transactionDate = json['transactionDate']; statusName = json['statusName']; priorityName = json['priorityName']; isHighPriority = json['isHighPriority']; assetName = json['assetName']; assetNumber = json['assetNumber']; requestTypeName = json['requestTypeName']; requestNo = json['requestNo']; } Map toJson() { final Map data = {}; data['id'] = id; data['typeTransaction'] = typeTransaction; data['transactionDate'] = transactionDate; data['statusName'] = statusName; data['priorityName'] = priorityName; data['isHighPriority'] = isHighPriority; data['assetName'] = assetName; data['assetNumber'] = assetNumber; data['requestTypeName'] = requestTypeName; data['requestNo'] = requestNo; return data; } } class CommonResponseModel{ bool data; String message; String title; String innerMessage; int responseCode; bool isSuccess; CommonResponseModel({ this.data, this.message, this.title, this.innerMessage, this.responseCode, this.isSuccess, }); factory CommonResponseModel.fromJson(Map json) { return CommonResponseModel( data: json['data'], message: json['message'] ?? '', title: json['title'], innerMessage: json['innerMessage'], responseCode: json['responseCode'], isSuccess: json['isSuccess'], ); } Map toJson() { return { 'data': data, 'message': message, 'title': title, 'innerMessage': innerMessage, 'responseCode': responseCode, 'isSuccess': isSuccess, }; } }