Nikky
05/30/2023, 12:12 PMAyfri
05/30/2023, 1:56 PM@SerialName
annotation on each class you need to have this behavior, and set the value to the class name, it's not automatic but it's at least simple to setupNikky
05/30/2023, 4:12 PMOliver.O
05/31/2023, 2:32 PMfun IrClass.serialName(): String {
return annotations.serialNameValue ?: fqNameWhenAvailable?.asString() ?: error("${this.render()} does not have fqName")
}
@SerialName
annotations will fail to achieve the intended result, as there is no way to configure the order of plugin invocations in the compiler.