ContainerRestartPolicy.fromJson constructor

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

Deserialises from Docker's JSON representation.

Implementation

factory ContainerRestartPolicy.fromJson(Map<String, dynamic> json) =>
    ContainerRestartPolicy(
      name: json['Name'] as String?,
      maximumRetryCount: json['MaximumRetryCount'] as int?,
    );