SamplingProfile.fromJson constructor

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

Implementation

factory SamplingProfile.fromJson(Map<String, dynamic> json) {
  return SamplingProfile(
    samples:
        (json['samples'] as List)
            .map(
              (e) => SamplingProfileNode.fromJson(e as Map<String, dynamic>),
            )
            .toList(),
    modules:
        (json['modules'] as List)
            .map((e) => Module.fromJson(e as Map<String, dynamic>))
            .toList(),
  );
}