fromJson static method
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} : {},
channels: json['channels'] != null ? ChannelsSpec.fromJson(json['channels'] as Map<String, dynamic>) : null,
email: json['email'] != null ? EmailSpec.fromJson(json['email'] as Map<String, dynamic>) : null,
heartbeat: json['heartbeat'] != null ? HeartbeatSpec.fromJson(json['heartbeat'] as Map<String, dynamic>) : null,
);
}