AgentContainer.fromJson constructor

AgentContainer.fromJson(
  1. Map json_
)

Implementation

AgentContainer.fromJson(core.Map json_)
    : this(
        commands: json_.containsKey('commands')
            ? (json_['commands'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : 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,
        volumes: json_.containsKey('volumes')
            ? (json_['volumes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );