notification_params.dart 699 B

123456789101112131415161718192021222324252627
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'notification_params.g.dart';
  3. /// Object config for Notification Android.
  4. @JsonSerializable(explicitToJson: true)
  5. class NotificationParams {
  6. const NotificationParams({
  7. this.id,
  8. this.showNotification,
  9. this.subtitle,
  10. this.callbackText,
  11. this.isShowCallback,
  12. this.count,
  13. });
  14. final int? id;
  15. final bool? showNotification;
  16. final String? subtitle;
  17. final String? callbackText;
  18. final bool? isShowCallback;
  19. final int? count;
  20. factory NotificationParams.fromJson(Map<String, dynamic> json) =>
  21. _$NotificationParamsFromJson(json);
  22. Map<String, dynamic> toJson() => _$NotificationParamsToJson(this);
  23. }