LocalTranslationWithInterface.fromTranslation constructor

LocalTranslationWithInterface.fromTranslation(
  1. 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,
    );