TranslationSystem.fromYaml constructor

TranslationSystem.fromYaml(
  1. dynamic yaml
)

Implementation

factory TranslationSystem.fromYaml(dynamic yaml) {
  return TranslationSystem(
    sourceLanguage: yaml['sourceLanguage'] ?? 'auto',
    language: yaml['language'] != null ? List<String>.from(yaml['language']) : null,
    inputDestination: yaml['inputDestination'],
    outputDestination: yaml['outputDestination'],
    outputFileExtension: yaml['outputFileExtension'] ?? '.json',
    generateTranslationKeys: yaml['generateTranslationKeys'],
    translationKeysLocation: yaml['translationKeysLocation'],
  );
}