AgentTask.fromJson constructor

AgentTask.fromJson(
  1. Map json_
)

Implementation

AgentTask.fromJson(core.Map json_)
    : this(
        agentTaskSpec: json_.containsKey('agentTaskSpec')
            ? AgentTaskSpec.fromJson(
                json_['agentTaskSpec'] as core.Map<core.String, core.dynamic>)
            : null,
        intendedState: json_.containsKey('intendedState')
            ? json_['intendedState'] as core.String
            : null,
        reachedBarrier: json_.containsKey('reachedBarrier')
            ? json_['reachedBarrier'] as core.String
            : null,
        spec: json_.containsKey('spec')
            ? TaskSpec.fromJson(
                json_['spec'] as core.Map<core.String, core.dynamic>)
            : null,
        status: json_.containsKey('status')
            ? TaskStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
        task: json_.containsKey('task') ? json_['task'] as core.String : null,
        taskSource: json_.containsKey('taskSource')
            ? json_['taskSource'] as core.String
            : null,
      );