IntegrityReport.fromJson constructor
IntegrityReport.fromJson(
- Map<String, dynamic>? json
)
Implementation
factory IntegrityReport.fromJson(Map<String, dynamic>? json) {
if (json == null) {
return const IntegrityReport();
}
final rawGotSlots = json['got_slots'];
return IntegrityReport(
patchedNatives: _strings(json['patched_natives']),
lies: _maps(json['lies']).map(Lie.fromJson).toList(growable: false),
nativeSymbols: _maps(json['native_symbols'])
.map(NativeSymbol.fromJson)
.toList(growable: false),
objcMethods: _maps(json['objc_methods'])
.map(ObjcMethod.fromJson)
.toList(growable: false),
gotSlots: rawGotSlots is List
? _maps(rawGotSlots).map(GotSlot.fromJson).toList(growable: false)
: null,
nativeMethods: _maps(json['native_methods'])
.map(NativeMethodCount.fromJson)
.toList(growable: false),
);
}