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 json) { alarmNo = json['alarmNo']; alarmType = json['alarmType']; deviceName = json['deviceName']; deviceNo = json['deviceNo']; time = json['time']; type = json['type']; } Map toJson() { final Map data = new Map(); 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; } }