OrderApprovalMapping.fromJson constructor

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

Implementation

OrderApprovalMapping.fromJson(Map<String, dynamic> json) {
  createdByUserName = json['createdByUserName'];
  updatedByUserName = json['updatedByUserName'];
  createdBy = json['createdBy'];
  createdDate = json['createdDate'];
  updatedBy = json['updatedBy'];
  updatedDate = json['updatedDate'];
  id = json['id'];
  invoiceId = json['invoiceId'];
  orderId = json['orderId'];
  status = json['status'];
  paymentStatus = json['paymentStatus'];
  orderStatus = json['orderStatus'];
  approverId = json['approverId'];
  approverName = json['approverName'];
  orderType = json['orderType'];
  paymentTransactionId = json['paymentTransactionId'];
  if (json['taskIds'] != null) {
    taskIds = <TaskIds>[];
    json['taskIds'].forEach((v) {
      taskIds!.add(TaskIds.fromJson(v));
    });
  }
}