FCVolumeSource.fromJson constructor
Creates a FCVolumeSource from JSON data.
Implementation
factory FCVolumeSource.fromJson(Map<String, dynamic> json) {
final tempFsTypeJson = json['fsType'];
final tempLunJson = json['lun'];
final tempReadOnlyJson = json['readOnly'];
final tempTargetWWNsJson = json['targetWWNs'];
final tempWwidsJson = json['wwids'];
final String? tempFsType = tempFsTypeJson;
final int? tempLun = tempLunJson;
final bool? tempReadOnly = tempReadOnlyJson;
final List<String>? tempTargetWWNs = tempTargetWWNsJson != null
? List<String>.from(tempTargetWWNsJson)
: null;
final List<String>? tempWwids =
tempWwidsJson != null ? List<String>.from(tempWwidsJson) : null;
return FCVolumeSource(
fsType: tempFsType,
lun: tempLun,
readOnly: tempReadOnly,
targetWWNs: tempTargetWWNs,
wwids: tempWwids,
);
}