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