toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = Map<String, dynamic>();
data['createdByUserName'] = this.createdByUserName;
data['updatedByUserName'] = this.updatedByUserName;
data['createdBy'] = this.createdBy;
data['createdDate'] = this.createdDate;
data['updatedBy'] = this.updatedBy;
data['updatedDate'] = this.updatedDate;
data['id'] = this.id;
data['invoiceId'] = this.invoiceId;
data['orderId'] = this.orderId;
data['status'] = this.status;
data['paymentStatus'] = this.paymentStatus;
data['orderStatus'] = this.orderStatus;
data['approverId'] = this.approverId;
data['approverName'] = this.approverName;
data['orderType'] = this.orderType;
data['paymentTransactionId'] = this.paymentTransactionId;
if (this.taskIds != null) {
data['taskIds'] = this.taskIds!.map((v) => v.toJson()).toList();
}
return data;
}