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