Container.fromJson constructor

Container.fromJson(
  1. Map json_
)

Implementation

Container.fromJson(core.Map json_)
    : this(
        blockExternalNetwork: json_.containsKey('blockExternalNetwork')
            ? json_['blockExternalNetwork'] as core.bool
            : null,
        commands: json_.containsKey('commands')
            ? (json_['commands'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        enableImageStreaming: json_.containsKey('enableImageStreaming')
            ? json_['enableImageStreaming'] as core.bool
            : null,
        entrypoint: json_.containsKey('entrypoint')
            ? json_['entrypoint'] as core.String
            : null,
        imageUri: json_.containsKey('imageUri')
            ? json_['imageUri'] as core.String
            : null,
        options: json_.containsKey('options')
            ? json_['options'] as core.String
            : null,
        password: json_.containsKey('password')
            ? json_['password'] as core.String
            : null,
        username: json_.containsKey('username')
            ? json_['username'] as core.String
            : null,
        volumes: json_.containsKey('volumes')
            ? (json_['volumes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );