BlogPostMapper class
Converte BlogPost de/para uma linha de banco (Map). É o equivalente do
frontmatter para a fonte de banco: define como o post é persistido nas
colunas e como volta a virar objeto. Robusto a valores em texto (o runtime
da API serializa tudo como String).
Constructors
- BlogPostMapper()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fromRow(
Map< String, Object?> r) → BlogPost - Linha de banco → post.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toRow(
BlogPost p) → Map< String, Object?> - Post → linha de banco (chaves = columns).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited