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,
    };