Map<String, Object?> toWire() => { 'kind': intentName, 'id': this.id, 'limit': (() { final _limit = this.limit; return _limit == null ? null : _limit; })(), };