decode method

DecodeOutput decode(
  1. DecodeInput input
)

Implementation

DecodeOutput decode(DecodeInput input) {
  final dynamic decoded;
  try {
    decoded = loadYaml(input.text);
  } catch (e) {
    return DecodeOutput(isError: true, errorMessage: e.toString());
  }
  return DecodeOutput(value: _convertFromDart(decoded));
}