toMap method

Map<String, dynamic> toMap([
  1. bool includeBeforeAfter = true
])

Implementation

Map<String, dynamic> toMap([bool includeBeforeAfter = true]) => {
      "data_access": context?.dataAccess.toMap() ?? "unknown",
      "type": type.index,
      "create": createTime.millisecondsSinceEpoch,
      "request": request?.toMap(),
      if (includeBeforeAfter) "before": before,
      if (includeBeforeAfter) "after": after,
      "access": access.toMap(),
      "errors": errors
    };