ContainerDeviceMapping.fromJson constructor

ContainerDeviceMapping.fromJson(
  1. Map<String, dynamic> json
)

Deserialises from Docker's JSON representation.

Implementation

factory ContainerDeviceMapping.fromJson(Map<String, dynamic> json) =>
    ContainerDeviceMapping(
      pathOnHost: json['PathOnHost'] as String?,
      pathInContainer: json['PathInContainer'] as String?,
      cgroupPermissions: json['CgroupPermissions'] as String?,
    );