SamplesMemoryJson class
- Inheritance
-
- Object
- MemoryJson<
HeapSample> - SamplesMemoryJson
Constructors
- SamplesMemoryJson()
-
SamplesMemoryJson.decode({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<
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
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 -
Encoded Heap Sample
override
-
encodeAnother(
HeapSample sample) → String -
More than one Encoded Heap Sample, add a comma and the Encoded Heap Sample.
override
-
fromJson(
Map< String, dynamic> 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, dynamic> 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.