ServiceTemplateVariable.fromJson constructor
Implementation
factory ServiceTemplateVariable.fromJson(Map<String, dynamic> json) {
return ServiceTemplateVariable(
name: json['name'] as String,
description: json['description'] as String?,
obscure: json["obscure"] ?? false,
optional: json["optional"] ?? false,
enumValues: json["enum"] == null ? null : (json["enum"] as List).map((e) => e.toString()).toList(),
);
}