initial commit (migrated)
This commit is contained in:
commit
b594facb51
143 changed files with 11057 additions and 0 deletions
14
lib/features/quote/domain/entities/translation.dart
Normal file
14
lib/features/quote/domain/entities/translation.dart
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
import 'package:kuwot/features/quote/data/models/translation_model.dart';
|
||||
|
||||
part 'translation.freezed.dart';
|
||||
|
||||
@freezed
|
||||
abstract class Translation with _$Translation {
|
||||
const factory Translation({required String id, required String language}) =
|
||||
_Translation;
|
||||
|
||||
static Translation fromModel(TranslationModel model) {
|
||||
return Translation(id: model.id, language: model.lang);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue