SamplesMemoryJson class
- Inheritance
-
- Object
- MemoryJson<
HeapSample> - SamplesMemoryJson
Constructors
- SamplesMemoryJson.new()
-
SamplesMemoryJson.decode({required String argJsonString, Map<
String, Object?> ? argDecodedMap}) - Given a JSON string representing an array of HeapSample, decode to a list of HeapSample.
Properties
-
data
→ List<
HeapSample> -
If data is empty, check isMatchedVersion and isMemoryPayload to
ensure the JSON file loaded is a memory file.
finalinherited
- 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 setterinherited
- isMemoryPayload → bool
-
JSON payload field
"dart<T>DevToolsScreen"
has a value of "memory" e.g.,"dartDevToolsScreen": "memory"
no setterinherited - payloadVersion → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → int
-
Structure of the memory JSON file
no setteroverride
Methods
-
encode(
HeapSample sample) → String -
Encode the specified
sample
.override -
encodeAnother(
HeapSample sample) → String -
More than one encoded HeapSample,
add a comma and the encoded
sample
.override -
fromJson(
Map< String, Object?> json) → HeapSample -
override
-
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, Object?> payload, int oldVersion) → Map<String, dynamic> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
encodeList(
List< HeapSample> data) → String - Given a list of HeapSample, encode as a Json string.