toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (agentTaskSpec != null) 'agentTaskSpec': agentTaskSpec!,
      if (intendedState != null) 'intendedState': intendedState!,
      if (reachedBarrier != null) 'reachedBarrier': reachedBarrier!,
      if (spec != null) 'spec': spec!,
      if (status != null) 'status': status!,
      if (task != null) 'task': task!,
      if (taskSource != null) 'taskSource': taskSource!,
    };