parent
57734c42fe
commit
74c973a662
@ -1,25 +1,42 @@
|
|||||||
import 'package:json_annotation/json_annotation.dart';
|
import 'package:json_annotation/json_annotation.dart';
|
||||||
|
import 'package:equatable/equatable.dart';
|
||||||
|
|
||||||
part 'fire_model.g.dart';
|
part 'fire_model.g.dart';
|
||||||
|
|
||||||
@JsonSerializable()
|
@JsonSerializable()
|
||||||
class FireModel {
|
class FireModel extends Equatable {
|
||||||
String? alarmNo;
|
final String? model;
|
||||||
String? alarmType;
|
final String? communityCode;
|
||||||
String? deviceName;
|
final int? alarmType;
|
||||||
String? deviceNo;
|
final String? alarmNo;
|
||||||
String? time;
|
final String? deviceNo;
|
||||||
int? type;
|
final String? deviceName;
|
||||||
|
final String? time;
|
||||||
|
final String? alarmContent;
|
||||||
|
|
||||||
factory FireModel.fromJson(Map<String, dynamic> json) =>
|
factory FireModel.fromJson(Map<String, dynamic> json) =>
|
||||||
_$FireModelFromJson(json);
|
_$FireModelFromJson(json);
|
||||||
|
|
||||||
|
@override
|
||||||
|
List<Object?> get props => [
|
||||||
|
model,
|
||||||
|
communityCode,
|
||||||
|
alarmType,
|
||||||
|
alarmNo,
|
||||||
|
deviceNo,
|
||||||
|
deviceName,
|
||||||
|
time,
|
||||||
|
alarmContent,
|
||||||
|
];
|
||||||
|
|
||||||
FireModel({
|
FireModel({
|
||||||
this.alarmNo,
|
this.model,
|
||||||
|
this.communityCode,
|
||||||
this.alarmType,
|
this.alarmType,
|
||||||
this.deviceName,
|
this.alarmNo,
|
||||||
this.deviceNo,
|
this.deviceNo,
|
||||||
|
this.deviceName,
|
||||||
this.time,
|
this.time,
|
||||||
this.type,
|
this.alarmContent,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue