ComponentDescriptor.fromJson constructor

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

Implementation

ComponentDescriptor.fromJson(Map<String, dynamic> json)
    : type = componentTypeFromString(json['type']),
      scope = componentScopeFromString(json['scope']),
      clusteringMode =
          componentClusteringModeFromString(json['clusteringMode']),
      name = json['name'],
      clazz = json['clazz'],
      configurationDescriptor = json['configurationDescriptor'],
      configurationVersion = json['configurationVersion'],
      actions = json['actions'],
      super.fromJson(json, (id) => ComponentDescriptorId(id));