NotificationViewModel class

Available extensions
Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

NotificationViewModel.new({int? id, String? guid, String? title, NotificationTypes? type, Map<String, dynamic>? metadata, DateTime? seenAt, DateTime? createdAt})
NotificationViewModel.fromJson(Map<String, dynamic> json)
factory

Properties

createdAt DateTime?
final
guid String?
final
hashCode int
The hash code for this object.
no setteroverride
id int?
final
metadata Map<String, dynamic>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seenAt DateTime?
final
title String?
final
type NotificationTypes?
final

Methods

copyWith({int? id, String? guid, String? title, NotificationTypes? type, Map<String, dynamic>? metadata, DateTime? seenAt, DateTime? createdAt}) NotificationViewModel

Available on NotificationViewModel, provided by the $NotificationViewModelExtension extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator.
override

Constants

fromJsonFactory → const NotificationViewModel Function(Map<String, dynamic> json)
toJsonFactory → const Map<String, dynamic> Function(NotificationViewModel instance)