SamplingHeapProfile.fromJson constructor

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

Implementation

factory SamplingHeapProfile.fromJson(Map<String, dynamic> json) {
  return SamplingHeapProfile(
    head: SamplingHeapProfileNode.fromJson(
        json['head'] as Map<String, dynamic>),
    samples: (json['samples'] as List)
        .map((e) =>
            SamplingHeapProfileSample.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}