fromJson static method

PluginDeclaration fromJson(
  1. Map<String, Object?> json
)

Implementation

static PluginDeclaration fromJson(Map<String, Object?> json) =>
    PluginDeclaration(
      id: json['id']! as String,
      label: json['label']! as String,
      config: (json['config'] as Map?)?.cast<String, Object?>() ?? const {},
    );