Translation constructor

Translation({
  1. required List translationString,
})

Implementation

Translation({required this.translationString}) {
  this.list = List<dynamic>.from(this.translationString)
      .map((translation) => TranslationProps(
          property: translation['property'],
          locale: translation['locale'],
          value: translation['value']))
      .toList();
}