CommentViewModel class

Available extensions
Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

CommentViewModel.new({int? id, String? body, int? entityId, CommentType? entityType, UserViewModel? user, DateTime? updatedAt, DateTime? createdAt})
CommentViewModel.fromJson(Map<String, dynamic> json)
factory

Properties

body String?
final
createdAt DateTime?
final
entityId int?
final
entityType CommentType?
final
hashCode int
The hash code for this object.
no setteroverride
id int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updatedAt DateTime?
final
user UserViewModel?
final

Methods

copyWith({int? id, String? body, int? entityId, CommentType? entityType, UserViewModel? user, DateTime? updatedAt, DateTime? createdAt}) CommentViewModel

Available on CommentViewModel, provided by the $CommentViewModelExtension 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 CommentViewModel Function(Map<String, dynamic> json)
toJsonFactory → const Map<String, dynamic> Function(CommentViewModel instance)