toMap method

Map<String, dynamic> toMap()

Converts to a map for JSON serialization.

Implementation

Map<String, dynamic> toMap() => {
      'count': count,
      if (hash != null) 'hash': hash,
      if (lastModified != null) 'lastModified': lastModified!.toUtc().toIso8601String(),
      'pendingChanges': pendingChanges,
    };