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