initial commit (migrated)
This commit is contained in:
commit
b594facb51
143 changed files with 11057 additions and 0 deletions
17
lib/features/quote/data/models/quote_model.dart
Normal file
17
lib/features/quote/data/models/quote_model.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'quote_model.freezed.dart';
|
||||
part 'quote_model.g.dart';
|
||||
|
||||
@freezed
|
||||
abstract class QuoteModel with _$QuoteModel {
|
||||
@JsonSerializable(fieldRename: FieldRename.snake)
|
||||
const factory QuoteModel({
|
||||
required int id,
|
||||
required String text,
|
||||
required String author,
|
||||
}) = _QuoteModel;
|
||||
|
||||
factory QuoteModel.fromJson(Map<String, dynamic> json) =>
|
||||
_$QuoteModelFromJson(json);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue