FunctionParamWithValue<T>.fromJson constructor

FunctionParamWithValue<T>.fromJson(
  1. Map map
)

Implementation

factory FunctionParamWithValue.fromJson(Map map) {
  final type = FunctionParamType.fromString(map['type']);
  return FunctionParamWithValue(
    value: type.valueFromJson(map['value']),
    name: map['name'],
    indexed: map['indexed'] as bool? ?? false,
    type: type,
  );
}