fromJson static method
Implementation
static ActionParameter fromJson(Map<String, Object?> json) => ActionParameter(
json['id']! as String,
json['label']! as String,
kind: ActionParameterKind.byName(json['kind'] as String? ?? 'string'),
required: json['required'] != false,
description: json['description'] as String?,
defaultValue: json['default'] as String?,
options: [
for (var o in (json['options'] as List? ?? const []))
ActionOption.fromJson((o as Map).cast<String, Object?>()),
],
optionsFrom: json['optionsFrom'] as String?,
repeatable: json['repeatable'] == true,
);