parent
6325d49437
commit
eb1ac12092
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 43 KiB |
@ -0,0 +1,36 @@
|
||||
class AlarmModel {
|
||||
String? alarmNo;
|
||||
String? alarmType;
|
||||
String? deviceName;
|
||||
String? deviceNo;
|
||||
String? time;
|
||||
int? type;
|
||||
|
||||
AlarmModel(
|
||||
{this.alarmNo,
|
||||
this.alarmType,
|
||||
this.deviceName,
|
||||
this.deviceNo,
|
||||
this.time,
|
||||
this.type});
|
||||
|
||||
AlarmModel.fromJson(Map<String, dynamic> json) {
|
||||
alarmNo = json['alarmNo'];
|
||||
alarmType = json['alarmType'];
|
||||
deviceName = json['deviceName'];
|
||||
deviceNo = json['deviceNo'];
|
||||
time = json['time'];
|
||||
type = json['type'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['alarmNo'] = this.alarmNo;
|
||||
data['alarmType'] = this.alarmType;
|
||||
data['deviceName'] = this.deviceName;
|
||||
data['deviceNo'] = this.deviceNo;
|
||||
data['time'] = this.time;
|
||||
data['type'] = this.type;
|
||||
return data;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue