ContainerMountPoint.fromJson constructor
Deserialises from Docker's JSON representation.
Implementation
factory ContainerMountPoint.fromJson(Map<String, dynamic> json) {
final bo = json['BindOptions'] as Map<String, dynamic>?;
final vo = json['VolumeOptions'] as Map<String, dynamic>?;
final io = json['ImageOptions'] as Map<String, dynamic>?;
final to = json['TmpfsOptions'] as Map<String, dynamic>?;
return ContainerMountPoint(
type: json['Type'] as String?,
source: json['Source'] as String?,
target: json['Target'] as String?,
readOnly: json['ReadOnly'] as bool?,
consistency: json['Consistency'] as String?,
bindOptions: bo != null ? ContainerBindOptions.fromJson(bo) : null,
volumeOptions: vo != null ? ContainerVolumeOptions.fromJson(vo) : null,
imageOptions: io != null ? ContainerImageOptions.fromJson(io) : null,
tmpfsOptions: to != null ? ContainerTmpfsOptions.fromJson(to) : null,
);
}