You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
456 B
26 lines
456 B
3 years ago
|
import 'package:json_annotation/json_annotation.dart';
|
||
|
|
||
|
part 'fire_model.g.dart';
|
||
|
|
||
|
@JsonSerializable()
|
||
|
class FireModel {
|
||
|
String? alarmNo;
|
||
|
String? alarmType;
|
||
|
String? deviceName;
|
||
|
String? deviceNo;
|
||
|
String? time;
|
||
|
int? type;
|
||
|
|
||
|
factory FireModel.fromJson(Map<String, dynamic> json) =>
|
||
|
_$FireModelFromJson(json);
|
||
|
|
||
|
FireModel({
|
||
|
this.alarmNo,
|
||
|
this.alarmType,
|
||
|
this.deviceName,
|
||
|
this.deviceNo,
|
||
|
this.time,
|
||
|
this.type,
|
||
|
});
|
||
|
}
|