toMap method

JsonMap toMap()

Converts to a JSON-serializable map.

Implementation

JsonMap toMap() => {
      'previous': previous.toMap(),
      'current': current.toMap(),
      'changeType': changeType.name,
      'timestamp': timestamp.toIso8601String(),
    };