forked from eatvio/eatvio_app
updated error handling, consultant rating layout and complaining logic
This commit is contained in:
15
lib/features/complaining/models/complain_model.dart
Normal file
15
lib/features/complaining/models/complain_model.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'complain_model.freezed.dart';
|
||||
part 'complain_model.g.dart';
|
||||
|
||||
@freezed
|
||||
class ComplainModel with _$ComplainModel {
|
||||
|
||||
const factory ComplainModel({
|
||||
@Default(null) String? description,
|
||||
@Default([]) List<String> tags,
|
||||
}) = _ComplainModel;
|
||||
|
||||
factory ComplainModel.fromJson(Map<String, dynamic> json) => _$ComplainModelFromJson(json);
|
||||
}
|
||||
Reference in New Issue
Block a user