PostPartial class

Partial projection for Post.

All fields are nullable; intended for subset SELECTs.

Constructors

PostPartial({int? id, int? authorId, String? title, String? content, int? views, DateTime? publishedAt})
const
PostPartial.fromRow(Map<String, Object?> row)
Creates a partial from a database row map.
factory

Properties

authorId int?
final
content String?
final
hashCode int
The hash code for this object.
no setterinherited
id int?
final
publishedAt DateTime?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
final
views int?
final

Methods

copyWith({Object? id = _copyWithSentinel, Object? authorId = _copyWithSentinel, Object? title = _copyWithSentinel, Object? content = _copyWithSentinel, Object? views = _copyWithSentinel, Object? publishedAt = _copyWithSentinel}) PostPartial
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEntity() $Post
Convert this partial into a full entity.
toMap() Map<String, Object?>
Converts this partial to a map with column names as keys.
toString() String
A string representation of this object.
inherited

Operators

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