AgentInfo.fromJson constructor

AgentInfo.fromJson(
  1. Map json_
)

Implementation

AgentInfo.fromJson(core.Map json_)
    : this(
        jobId:
            json_.containsKey('jobId') ? json_['jobId'] as core.String : null,
        reportTime: json_.containsKey('reportTime')
            ? json_['reportTime'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        taskGroupId: json_.containsKey('taskGroupId')
            ? json_['taskGroupId'] as core.String
            : null,
        tasks: json_.containsKey('tasks')
            ? (json_['tasks'] as core.List)
                .map((value) => AgentTaskInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );