LocalTranslationWithInterface.fromTranslation constructor
LocalTranslationWithInterface.fromTranslation(
- Translation translation
Creates a new LocalTranslationWithInterface from a Translation object.
Implementation
LocalTranslationWithInterface.fromTranslation(Translation translation)
: super(
originalTextHash: translation.originalTextHash,
translatedText: translation.translatedText,
originalLanguageCode: translation.originalLanguageCode,
translatedLanguageCode: translation.translatedLanguageCode,
isApproved: translation.isApproved,
createdAt: translation.createdAt,
);