fromJson static method
Implementation
static ContainerMountSpec? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return ContainerMountSpec(
room: (json['room'] as List?)?.map((e) => RoomStorageMountSpec.fromJson(_jsonObject(e))).toList(),
project: (json['project'] as List?)?.map((e) => ProjectStorageMountSpec.fromJson(_jsonObject(e))).toList(),
images: (json['images'] as List?)?.map((e) => ImageStorageMountSpec.fromJson(_jsonObject(e))).toList(),
files: (json['files'] as List?)?.map((e) => FileStorageMountSpec.fromJson(_jsonObject(e))).toList(),
emptyDirs: (json['empty_dirs'] as List?)?.map((e) => EmptyDirMountSpec.fromJson(_jsonObject(e))).toList(),
configs: (json['configs'] as List?)?.map((e) => ConfigMountSpec.fromJson(_jsonObject(e))).toList(),
);
}