SamplingHeapProfileNode.fromJson constructor

SamplingHeapProfileNode.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SamplingHeapProfileNode.fromJson(Map<String, dynamic> json) {
  return SamplingHeapProfileNode(
    callFrame:
        runtime.CallFrame.fromJson(json['callFrame'] as Map<String, dynamic>),
    selfSize: json['selfSize'] as num,
    id: json['id'] as int,
    children: (json['children'] as List)
        .map((e) =>
            SamplingHeapProfileNode.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}