IntegrityReport.fromJson constructor

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

Implementation

factory IntegrityReport.fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return const IntegrityReport(patchedNatives: [], lies: []);
  }

  return IntegrityReport(
    patchedNatives: _strings(json['patched_natives']),
    lies: _maps(json['lies']).map(Lie.fromJson).toList(growable: false),
  );
}