toJson method

Map<String, Object> toJson()

Converts a AuditAnnotation instance to JSON data.

Implementation

Map<String, Object> toJson() {
  final jsonData = <String, Object>{};

  final tempKey = key;
  final tempValueExpression = valueExpression;

  jsonData['key'] = tempKey;

  jsonData['valueExpression'] = tempValueExpression;

  return jsonData;
}