Skip to content

Add special handling for Kotlin data classes #8

@thecodewarrior

Description

@thecodewarrior

Serializing Kotlin data classes should be special-cased, allowing the omission of the @Refract and @RefractConstructor annotations. Special casing like this is less relevant in Java since everything is already written explicitly, however, requiring those annotations for Kotlin data classes can easily double the length of the declaration.

@RefractClass
data class Foo(val a: Int, val b: String)

vs.

@RefractClass
data class Foo @RefractConstructor constructor(@Refract val a: Int, @Refract val b: String)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions