AgentTaskSpec.fromJson constructor

AgentTaskSpec.fromJson(
  1. Map json_
)

Implementation

AgentTaskSpec.fromJson(core.Map json_)
    : this(
        environment: json_.containsKey('environment')
            ? AgentEnvironment.fromJson(
                json_['environment'] as core.Map<core.String, core.dynamic>)
            : null,
        maxRunDuration: json_.containsKey('maxRunDuration')
            ? json_['maxRunDuration'] as core.String
            : null,
        runnables: json_.containsKey('runnables')
            ? (json_['runnables'] as core.List)
                .map((value) => AgentTaskRunnable.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        userAccount: json_.containsKey('userAccount')
            ? AgentTaskUserAccount.fromJson(
                json_['userAccount'] as core.Map<core.String, core.dynamic>)
            : null,
      );