Map<String, dynamic> encode() { return _key != null ? { "kotlinType": _ktType, "key": _key } : { "kotlinType": _ktType }; }