PostModel class

Constructors

PostModel({required String documentID, required String authorId, DateTime? timestamp, required String appId, String? feedId, String? postAppId, String? postPageId, Map<String, dynamic>? pageParameters, String? html, String? description, int? likes, int? dislikes, PostAccessibleByGroup? accessibleByGroup, List<String>? accessibleByMembers, List<String>? readAccess, PostArchiveStatus? archived, String? externalLink, List<MemberMediumContainerModel>? memberMedia})

Properties

accessibleByGroup PostAccessibleByGroup?
getter/setter pair
accessibleByMembers List<String>?
getter/setter pair
appId String
getter/setter pairoverride
archived PostArchiveStatus?
getter/setter pair
authorId String
getter/setter pair
description String?
getter/setter pair
dislikes int?
getter/setter pair
documentID String
getter/setter pairoverride
getter/setter pair
feedId String?
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
html String?
getter/setter pair
likes int?
getter/setter pair
memberMedia List<MemberMediumContainerModel>?
getter/setter pair
pageParameters Map<String, dynamic>?
getter/setter pair
postAppId String?
getter/setter pair
postPageId String?
getter/setter pair
readAccess List<String>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime?
getter/setter pair

Methods

collectReferences({String? appId}) Future<List<ModelReference>>
override
copyWith({String? documentID, String? authorId, DateTime? timestamp, String? appId, String? feedId, String? postAppId, String? postPageId, Map<String, dynamic>? pageParameters, String? html, String? description, int? likes, int? dislikes, PostAccessibleByGroup? accessibleByGroup, List<String>? accessibleByMembers, List<String>? readAccess, PostArchiveStatus? archived, String? externalLink, List<MemberMediumContainerModel>? memberMedia}) PostModel
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEntity({String? appId}) PostEntity
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromEntity(String documentID, PostEntity? entity) Future<PostModel?>
fromEntityPlus(String documentID, PostEntity? entity, {String? appId}) Future<PostModel?>

Constants

id → const String
packageName → const String