MemoryJson<T> class
abstract
- Implemented types
-
- DecodeEncode<
T>
- DecodeEncode<
- Implementers
Constructors
- MemoryJson()
-
MemoryJson.decode(String payloadName, {required String argJsonString, Map<
String, dynamic> ? argDecodedMap}) - Given a JSON string representing an array of HeapSample, decode to a List of HeapSample.
Properties
-
data
→ List<
T> -
If data is empty check isMatchedVersion and isMemoryPayload to ensure the
JSON file loaded is a memory file.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMatchedVersion → bool
-
Imported JSON data loaded and converted, if necessary, to the latest version.
no setter
- isMemoryPayload → bool
-
JSON payload field "dart
no setter
- payloadVersion → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → int
-
no setterinherited
Methods
-
encode(
T sample) → String -
inherited
-
encodeAnother(
T sample) → String -
More than one Encoded entry, add a comma and the Encoded entry.
inherited
-
fromJson(
Map< String, dynamic> json) → T -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
upgradeToVersion(
Map< String, dynamic> payload, int oldVersion) → Map<String, dynamic>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- devToolsScreenValueMemory → const String
- jsonDataField → const String
- jsonDevToolsScreenField → const String
- jsonVersionField → const String