fromJson static method

AgentTemplateSpec fromJson(
  1. Map<String, dynamic> json
)

Implementation

static AgentTemplateSpec fromJson(Map<String, dynamic> json) {
  return AgentTemplateSpec(
    name: json["name"],
    description: json["description"],
    annotations: json['annotations'] != null ? {for (final entry in (json['annotations'] as Map).entries) entry.key: entry.value} : {},
  );
}