InstanceHardware.fromJson constructor
Implementation
factory InstanceHardware.fromJson(Map<String, dynamic> json) {
return InstanceHardware(
cpuCount: json['cpuCount'] as int?,
disks: (json['disks'] as List?)
?.whereNotNull()
.map((e) => Disk.fromJson(e as Map<String, dynamic>))
.toList(),
ramSizeInGb: json['ramSizeInGb'] as double?,
);
}