RunFile class Null safety
Run File
- Inheritance
- Implemented types
- Annotations
- @DataClass()
- @JsonSerializable()
- @ConnectOfflineFirstWithRest(restConfig: const RestSerializable(endpoint: '=> RunFileSyncEndpointHelper.restEndpoint(query, instance)', fieldRename: FieldRename.none))
Constructors
-
RunFile({required Run run, required List<
SplitTime> splitTimes, required List<RunLocation> locations, String? id, RunFileUploadStatus? status}) - Run File
- RunFile.empty()
- Empty Run file
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- id → String
-
Id
@Sqlite(index: true, unique: true), final
- isNewRecord → bool
-
If
true
, this model has not yet been inserted into SQLite.read-only, inherited -
locations
→ List<
RunLocation> -
Locations
final
- primaryKey ↔ int?
-
The fields needs to be overwritten, to keep it out of the json
@JsonKey(ignore: true), read / write, inherited
- run → Run
-
Run
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
-
splitTimes
→ List<
SplitTime> -
Split times
final
- status → RunFileUploadStatus
-
Upload status
@Rest(enumAsString: true, fromGenerator: 'SyncGeneratorHelper.enumFromSqlOrRest<RunFileUploadStatus>(RunFileUploadStatus.values, %DATA_PROPERTY%, RunFileUploadStatus.uploaded)', ignoreTo: true), @Sqlite(columnType: Column.varchar, fromGenerator: 'SyncGeneratorHelper.enumFromSqlOrRest<RunFileUploadStatus>(RunFileUploadStatus.values, %DATA_PROPERTY%, RunFileUploadStatus.unknown)', toGenerator: 'SyncGeneratorHelper.enumToSqlOrRest<RunFileUploadStatus>(%INSTANCE_PROPERTY%)'), final
Methods
-
afterSave(
{Provider< Model> ? provider, ModelRepository<Model> ? repository}) → Future<void> -
Hook invoked after the model is successfully entered in the SQLite database.
Useful to update or save associations.
inherited
-
beforeSave(
{Provider< Model> ? provider, ModelRepository<Model> ? repository}) → Future<void> -
Hook invoked before the model is successfully entered in the SQLite database.
Useful to update or save associations.
inherited
-
copyWith(
{Run? run, List< SplitTime> ? splitTimes, List<RunLocation> ? locations, String? id, RunFileUploadStatus? status}) → RunFile -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
) → Json -
To json
override
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited