normalizeRawArgument method

void normalizeRawArgument(
  1. dynamic arg,
  2. BcsType schema
)

Implementation

void normalizeRawArgument(
  dynamic arg,
  BcsType schema,
) {
  if (arg is! Map) {
    return;
  }
  if (arg["Input"] == null) {
    return;
  }
  final input = _blockData.inputs[arg["Input"]];

  if (input["UnresolvedPure"] == null) {
    return;
  }

  _blockData.inputs[arg["Input"]] = Inputs.pure(schema.serialize(input["UnresolvedPure"]["value"]));
}