decode method

DecodeOutput decode(
  1. DecodeInput input
)

Implementation

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