You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
685 B
28 lines
685 B
import 'package:json_annotation/json_annotation.dart'; |
|
import 'package:meta/meta.dart'; |
|
import 'package:nextcloud/notifications.dart' show DecryptedSubject; |
|
|
|
part 'push_notification.g.dart'; |
|
|
|
@JsonSerializable() |
|
@immutable |
|
@internal |
|
class PushNotification { |
|
const PushNotification({ |
|
required this.accountID, |
|
required this.priority, |
|
required this.type, |
|
required this.subject, |
|
}); |
|
|
|
factory PushNotification.fromJson(final Map<String, dynamic> json) => _$PushNotificationFromJson(json); |
|
Map<String, dynamic> toJson() => _$PushNotificationToJson(this); |
|
|
|
final String accountID; |
|
|
|
final String priority; |
|
|
|
final String type; |
|
|
|
final DecryptedSubject subject; |
|
}
|
|
|