forked from eatvio/eatvio_app
feat(glossary): added pass key for glossary
This commit is contained in:
15
lib/features/profile/models/pass_key_params.dart
Normal file
15
lib/features/profile/models/pass_key_params.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'pass_key_params.freezed.dart';
|
||||
part 'pass_key_params.g.dart';
|
||||
|
||||
@freezed
|
||||
abstract class PassKeyParams with _$PassKeyParams {
|
||||
|
||||
factory PassKeyParams({
|
||||
@JsonKey(name: 'route_name') required String routeName,
|
||||
@JsonKey(name: 'route_params') Map<String, dynamic>? routeParams,
|
||||
}) = _PassKeyParams;
|
||||
|
||||
factory PassKeyParams.fromJson(Map<String, dynamic> json) => _$PassKeyParamsFromJson(json);
|
||||
}
|
||||
Reference in New Issue
Block a user