Disk.fromJson constructor
Implementation
factory Disk.fromJson(Map<String, dynamic> json) {
return Disk(
diskAllocationResource: json['DiskAllocationResource'] as String?,
diskAllocationType: json['DiskAllocationType'] as String?,
diskAttributeList: (json['DiskAttributeList'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
diskId: json['DiskId'] as String?,
diskNode: json['DiskNode'] as String?,
diskPath: json['DiskPath'] as String?,
diskSizeInBytes: json['DiskSizeInBytes'] as int?,
diskStatus: json['DiskStatus'] as String?,
);
}