IntegrityConfig.fromJson constructor
Create from JSON.
Implementation
factory IntegrityConfig.fromJson(Map<String, dynamic> json) {
return IntegrityConfig(
contentHash: json['contentHash'] != null
? ContentHash.fromJson(json['contentHash'] as Map<String, dynamic>)
: null,
files: (json['files'] as List<dynamic>?)
?.map((e) => FileHash.fromJson(e as Map<String, dynamic>))
.toList() ??
[],
signatures: (json['signatures'] as List<dynamic>?)
?.map((e) => Signature.fromJson(e as Map<String, dynamic>))
.toList() ??
[],
computedAt: json['computedAt'] != null
? DateTime.tryParse(json['computedAt'] as String)
: null,
);
}