ActionFunctionRegister.fromJson constructor

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

Implementation

factory ActionFunctionRegister.fromJson(Map<String, dynamic> json) => ActionFunctionRegister(
    functionId: (json['FunctionId'] as String?) ?? '',
    functionName: (json['FunctionName'] as String?) ?? '',
    parameters: (json['Parameters'] as List<dynamic>?)?.map((e) => FunctionRegisterParameter.fromJson((e ?? {}) as Map<String, dynamic>)).toList() ?? const [],
    resultTypeName: (json['ResultTypeName'] as String?) ?? '',
    isEnumerable: (json['IsEnumerable'] as bool?) ?? false,
    enumerableItemTypeName: (json['EnumerableItemTypeName'] as String?) ?? '',
    isCancellable: (json['IsCancellable'] as bool?) ?? false,
    description: (json['Description'] as String?) ?? '',
    llmInlineResult: (json['LlmInlineResult'] as bool?) ?? false,
    llmCallOnlyOnce: (json['LlmCallOnlyOnce'] as bool?) ?? false,
    requiresInstance: (json['RequiresInstance'] as bool?) ?? false,
    versions: (json['Versions'] as List<dynamic>?)?.map((e) => (e as String?) ?? '').toList() ?? const [],
);