AuditAnnotation.fromJson constructor

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

Creates a AuditAnnotation from JSON data.

Implementation

factory AuditAnnotation.fromJson(Map<String, dynamic> json) {
  final tempKeyJson = json['key'];
  final tempValueExpressionJson = json['valueExpression'];

  final String tempKey = tempKeyJson;
  final String tempValueExpression = tempValueExpressionJson;

  return AuditAnnotation(
    key: tempKey,
    valueExpression: tempValueExpression,
  );
}