Template.fromYaml constructor

Template.fromYaml(
  1. YamlMap map
)

Implementation

factory Template.fromYaml(YamlMap map) {
  return Template(
    source: map['source'] as String,
    target: map['target'] as String,
  );
}