[text] sasas

Viewer

  1. class ApprovalPoCompareModel {
  2.   final String? company,
  3.       quotationCode,
  4.       itemKode,
  5.       itemNama,
  6.       qty,
  7.       satuan,
  8.       valuta,
  9.       price,
  10.       termOfPayment,
  11.       tipeTerm,
  12.       deliveryTime,
  13.       gambar;
  14.  
  15.   ApprovalPoCompareModel(
  16.       {this.company,
  17.       this.quotationCode,
  18.       this.itemKode,
  19.       this.itemNama,
  20.       this.qty,
  21.       this.satuan,
  22.       this.valuta,
  23.       this.price,
  24.       this.termOfPayment,
  25.       this.tipeTerm,
  26.       this.deliveryTime,
  27.       this.gambar});
  28.  
  29.   factory ApprovalPoCompareModel.fromJson(Map<dynamic, dynamic> json) {
  30.     return ApprovalPoCompareModel(
  31.         company: json["company"],
  32.         quotationCode: json["quotation_code"],
  33.         itemKode: json["item_kode"],
  34.         itemNama: json["item_nama"],
  35.         qty: json["qty"],
  36.         satuan: json["satuan"],
  37.         valuta: json["valuta"],
  38.         price: json["price"],
  39.         termOfPayment: json["term_of_payment"],
  40.         tipeTerm: json["tipe_term"],
  41.         deliveryTime: json["delivery_time"],
  42.         gambar: json["gambar"]);
  43.   }
  44.  
  45.   static List<ApprovalPoCompareModel> fromJsonList(List list) {
  46.     return list.map((e) => ApprovalPoCompareModel.fromJson(e)).toList();
  47.   }
  48. }

Editor

You can edit this paste and save as new: