RunLocationAdapter class Null safety
Construct a RunLocation
- Inheritance
- Object
- SqliteAdapter<
RunLocation> - OfflineFirstWithRestAdapter<
RunLocation> - RunLocationAdapter
Constructors
Properties
-
fieldsToSqliteColumns
→ Map<
String, RuntimeSqliteColumnDefinition> -
A dictionary that connects field names to SQLite column properties.
final
- fromKey → String?
-
Retrieves data under this key when deserializing from REST
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- tableName → String
-
Defaults to pluralized model name from the generator.
If this property is changed after the table has been inserted,
a RenameTable MigrationCommand must be included in the next Migration.
final
- toKey → String?
-
Submits data under this key when serializing to REST
final
Methods
-
afterSave(
RunLocation instance, {required SqliteProvider provider, ModelRepository< SqliteModel> ? repository}) → Future<void> -
Hook invoked after the model is successfully entered in the SQLite database.
Useful to update or save associations. This is invoked before
SqliteModel#afterSave
.inherited -
beforeSave(
RunLocation instance, {required SqliteProvider provider, ModelRepository< SqliteModel> ? repository}) → Future<void> -
Hook invoked before the model is successfully entered in the SQLite database.
Useful to update or save associations. This is invoked before
SqliteModel#beforeSave
.inherited -
fromRest(
Map< String, dynamic> input, {required RestProvider provider, covariant OfflineFirstWithRestRepository? repository}) → Future<RunLocation> -
override
-
fromSqlite(
Map< String, dynamic> input, {required SqliteProvider provider, covariant OfflineFirstWithRestRepository? repository}) → Future<RunLocation> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
primaryKeyByUniqueColumns(
RunLocation instance, DatabaseExecutor executor) → Future< int?> -
Find a record based on the existence of all contained fields annotated with
@Sqlite(unique: true)
. The Brick-defined primary key of the table is not included in the query. Returns the Brick-defined primary key of the discovered record. [...]override -
restEndpoint(
{Query? query, RunLocation? instance}) → String? -
The endpoint path to access provided a query. Must include a leading slash.
override
-
toRest(
RunLocation input, {required RestProvider provider, covariant OfflineFirstWithRestRepository? repository}) → Future< Map< String, dynamic> > -
override
-
toSqlite(
RunLocation input, {required SqliteProvider provider, covariant OfflineFirstWithRestRepository? repository}) → Future< Map< String, dynamic> > -
override
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited