// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'odf_details_bean.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

OdfDetailsBean _$OdfDetailsBeanFromJson(Map<String, dynamic> json) =>
    OdfDetailsBean(
      (json['id'] as num?)?.toInt(),
      json['name'] as String?,
      (json['roomId'] as num?)?.toInt(),
      json['roomName'] as String?,
      (json['rackId'] as num?)?.toInt(),
      json['rackName'] as String?,
      (json['frameId'] as num?)?.toInt(),
      json['frameName'] as String?,
      (json['deptId'] as num?)?.toInt(),
      (json['rowNumber'] as num?)?.toInt(),
      (json['portNumber'] as num?)?.toInt(),
      (json['status'] as num?)?.toInt(),
      json['remarks'] as String?,
      json['opticalAttenuation'] as String?,
      json['opticalCableOffRemarks'] as String?,
      json['historyRemarks'] as String?,
      (json['historyFault'] as List<dynamic>?)
          ?.map((e) => HistoryFaultBean.fromJson(e as Map<String, dynamic>))
          .toList(),
      json['createdAt'] as String?,
      json['updatedAt'] as String?,
      json['statusLabel'] as String?,
      json['deptName'] as String?,
      json['equipmentModel'] as String?,
      json['businessType'] as String?,
    );

Map<String, dynamic> _$OdfDetailsBeanToJson(OdfDetailsBean instance) =>
    <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'roomId': instance.roomId,
      'roomName': instance.roomName,
      'rackId': instance.rackId,
      'rackName': instance.rackName,
      'frameId': instance.frameId,
      'frameName': instance.frameName,
      'deptId': instance.deptId,
      'rowNumber': instance.rowNumber,
      'portNumber': instance.portNumber,
      'status': instance.status,
      'remarks': instance.remarks,
      'opticalAttenuation': instance.opticalAttenuation,
      'opticalCableOffRemarks': instance.opticalCableOffRemarks,
      'historyRemarks': instance.historyRemarks,
      'historyFault': instance.historyFault?.map((e) => e.toJson()).toList(),
      'createdAt': instance.createdAt,
      'updatedAt': instance.updatedAt,
      'statusLabel': instance.statusLabel,
      'deptName': instance.deptName,
      'equipmentModel': instance.equipmentModel,
      'businessType': instance.businessType,
    };
