DockerVolumeConfiguration.fromJson constructor

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

Implementation

factory DockerVolumeConfiguration.fromJson(Map<String, dynamic> json) {
  return DockerVolumeConfiguration(
    autoprovision: json['autoprovision'] as bool?,
    driver: json['driver'] as String?,
    driverOpts: (json['driverOpts'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    labels: (json['labels'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    scope: (json['scope'] as String?)?.toScope(),
  );
}