AuditRecord.fromJson constructor
Implementation
factory AuditRecord.fromJson(Map<String, Object?> json) {
return AuditRecord(
author: AuditRecordAuthor.fromJson(
json[r'author'] as Map<String, Object?>? ?? const {}),
remoteAddress: json[r'remoteAddress'] as String? ?? '',
creationDate: (json[r'creationDate'] as num?)?.toInt() ?? 0,
summary: json[r'summary'] as String? ?? '',
description: json[r'description'] as String? ?? '',
category: json[r'category'] as String? ?? '',
sysAdmin: json[r'sysAdmin'] as bool? ?? false,
superAdmin: json[r'superAdmin'] as bool? ?? false,
affectedObject: AffectedObject.fromJson(
json[r'affectedObject'] as Map<String, Object?>? ?? const {}),
changedValues: (json[r'changedValues'] as List<Object?>?)
?.map((i) =>
ChangedValue.fromJson(i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
associatedObjects: (json[r'associatedObjects'] as List<Object?>?)
?.map((i) => AffectedObject.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
);
}