Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Support for abstract class inheritance #42

@hackinteach

Description

@hackinteach

Currently the SDK doesn't support for Abstract field inheritance.
UserInfo is defined as follow: (written in Kotlin)

abstract class UserInfo(
        @SerializedName("First Name")
        @NotBlank
        open var firstName: String? = null,

        @SerializedName("Last Name")
        @NotBlank
        open var lastName: String? = null ) {}

and I have Student class which inherit from UserInfo as follow

class Student constructor() : UserInfo() {

    @SerializedName("Student CMKL ID")
    var studentId: String? = null
// ... more fields
)

but when I do select() the firstName and lastName aren't mapped out.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions