Leaks.fromJson constructor

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

Implementation

factory Leaks.fromJson(Map<String, dynamic> json) => Leaks(
      json.map(
        (key, value) => MapEntry(
          LeakType.byName(key),
          (value as List)
              .cast<Map<String, dynamic>>()
              .map(LeakReport.fromJson)
              .toList(growable: false),
        ),
      ),
    );