fromJson static method

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

Implementation

static AuditLogEntry fromJson(Map<String, dynamic> json) {
  return AuditLogEntry(
    targetId: json['target_id'],
    changes: fromArray(AuditLogChange.fromJson, json['changes']),
    userId: json['user_id'],
    id: json['id'],
    actionType: json['action_type'],
    options: ifNotNull(AuditEntryInfo.fromJson, json['options']),
    reason: json['reason'],
  );
}