RawDisk.fromJson constructor
RawDisk.fromJson(
- Object? j
Implementation
factory RawDisk.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return RawDisk(
containerType: switch (json['containerType']) {
null => null,
Object $1 => decodeString($1),
},
sha1Checksum: switch (json['sha1Checksum']) {
null => null,
Object $1 => decodeString($1),
},
source: switch (json['source']) {
null => null,
Object $1 => decodeString($1),
},
);
}