Map<String, dynamic> toMap() { Map<String, dynamic> map = {}; if (_hash != null) { map['hash'] = _hash; } return map; }