initial commit (migrated)
This commit is contained in:
commit
b594facb51
143 changed files with 11057 additions and 0 deletions
16
lib/features/quote/domain/entities/quote.dart
Normal file
16
lib/features/quote/domain/entities/quote.dart
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
import 'package:kuwot/features/quote/data/models/quote_model.dart';
|
||||
|
||||
part 'quote.freezed.dart';
|
||||
|
||||
@freezed
|
||||
abstract class Quote with _$Quote {
|
||||
const factory Quote({
|
||||
required int id,
|
||||
required String author,
|
||||
required String body,
|
||||
}) = _Quote;
|
||||
|
||||
static Quote fromModel(QuoteModel model) =>
|
||||
Quote(id: model.id, author: model.author, body: model.text);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue