fromJson static method

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

Implementation

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