ContainerMount.fromJson constructor

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

Deserialises from Docker's JSON representation.

Implementation

factory ContainerMount.fromJson(Map<String, dynamic> json) => ContainerMount(
      type: json['Type'] as String?,
      name: json['Name'] as String?,
      source: json['Source'] as String?,
      destination: json['Destination'] as String?,
      driver: json['Driver'] as String?,
      mode: json['Mode'] as String?,
      rw: json['RW'] as bool?,
      propagation: json['Propagation'] as String?,
    );