toMap method

Map<String, dynamic> toMap()

Converts the operation to a map representation.

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'id': id,
    'userId': userId,
    'entityId': entityId,
    'type': type.name,
    'data': data?.toDatumMap(),
    'delta': delta,
    'timestamp': timestamp.millisecondsSinceEpoch,
    'retryCount': retryCount,
    'sizeInBytes': sizeInBytes,
  };
}