ODF/lib/bean/odf_details_bean.dart
2025-09-21 22:07:13 +08:00

58 lines
1.2 KiB
Dart

import 'package:json_annotation/json_annotation.dart';
import 'history_fault_bean.dart';
part 'odf_details_bean.g.dart';
@JsonSerializable(explicitToJson: true)
class OdfDetailsBean {
int? id;
String? name;
int? roomId;
String? roomName;
int? rackId;
String? rackName;
int? frameId;
String? frameName;
int? deptId;
int? rowNumber;
int? portNumber;
int? status;
String? remarks;
String? opticalAttenuation;
String? opticalCableOffRemarks;
String? historyRemarks;
List<HistoryFaultBean>? historyFault;
String? createdAt;
String? updatedAt;
String? statusLabel;
String? deptName;
OdfDetailsBean(
this.id,
this.name,
this.roomId,
this.roomName,
this.rackId,
this.rackName,
this.frameId,
this.frameName,
this.deptId,
this.rowNumber,
this.portNumber,
this.status,
this.remarks,
this.opticalAttenuation,
this.opticalCableOffRemarks,
this.historyRemarks,
this.historyFault,
this.createdAt,
this.updatedAt,
this.statusLabel,
this.deptName);
factory OdfDetailsBean.fromJson(Map<String, dynamic> json) => _$OdfDetailsBeanFromJson(json);
Map<String, dynamic> toJson() => _$OdfDetailsBeanToJson(this);
}