JsonDatabase class
JSON-format database adapter converting records into structured JSON payloads.
- Implemented types
Constructors
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
-
clear(
) → Future< void> -
Clears all stored records from database storage.
override
-
delete(
String personId) → Future< bool> -
Removes a person record by
personId.override -
exportJson(
) → String - Exports database contents as a formatted JSON String.
-
get(
String personId) → Future< PersonRecord?> -
Retrieves a registered PersonRecord by
personId.override -
getAll(
) → Future< List< PersonRecord> > -
Returns all registered PersonRecord entries.
override
-
importJson(
String jsonStr) → void - Imports database contents from a JSON String payload.
-
init(
) → Future< void> -
Initializes database storage resources.
override
-
insert(
PersonRecord record) → Future< void> -
Inserts or updates a PersonRecord in database storage.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited