LeakReport.fromJson constructor

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

Implementation

factory LeakReport.fromJson(Map<String, dynamic> json) => LeakReport(
      type: json[_JsonFields.type] as String,
      context: json[_JsonFields.context] as Map<String, dynamic>? ?? {},
      code: json[_JsonFields.code] as int,
      trackedClass: json[_JsonFields.trackedClass] as String? ?? '',
      phase: json[_JsonFields.phase] as String?,
    );