DiskSpec.fromJson constructor
DiskSpec.fromJson(
- Object? j
Implementation
factory DiskSpec.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return DiskSpec(
bootDiskType: switch (json['bootDiskType']) {
null => '',
Object $1 => decodeString($1),
},
bootDiskSizeGb: switch (json['bootDiskSizeGb']) {
null => 0,
Object $1 => decodeInt($1),
},
);
}