fromJson static method

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

Implementation

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