step 3 : hapus ai_barcode_scanner, ai barcode, update permission_handler, flutter_map,latlong2
This commit is contained in:
44
lib/models/history_model.dart
Normal file
44
lib/models/history_model.dart
Normal file
@@ -0,0 +1,44 @@
|
||||
class HistoryModel {
|
||||
String? id;
|
||||
int? tipeid;
|
||||
String? tipe;
|
||||
String? noSuratJalan;
|
||||
String? nama;
|
||||
String? distance;
|
||||
String? cdate;
|
||||
String? ispending;
|
||||
|
||||
HistoryModel(
|
||||
{this.id,
|
||||
this.tipeid,
|
||||
this.tipe,
|
||||
this.noSuratJalan,
|
||||
this.nama,
|
||||
this.distance,
|
||||
this.cdate,
|
||||
this.ispending});
|
||||
|
||||
HistoryModel.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
tipeid = int.parse(json['tipeid']);
|
||||
tipe = json['tipe'];
|
||||
noSuratJalan = json['no_surat_jalan'];
|
||||
nama = json['nama'];
|
||||
distance = json['distance'];
|
||||
cdate = json['cdate'];
|
||||
ispending = json['ispending'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['id'] = this.id;
|
||||
data['tipeid'] = this.tipeid;
|
||||
data['tipe'] = this.tipe;
|
||||
data['no_surat_jalan'] = this.noSuratJalan;
|
||||
data['nama'] = this.nama;
|
||||
data['distance'] = this.distance;
|
||||
data['cdate'] = this.cdate;
|
||||
data['ispending'] = this.ispending;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user