Firstly, I'm new to micronaut and kotlin. I'm trying to convert a data class that I receive as a request body to my API. I need to persist data from ...
Firstly, I'm new to micronaut and kotlin. I'm trying to convert a data class that I receive as a request body to my API. I need to persist data from ...
why can't I access a variable from another class? (the variable is in the data class, and when I want to access it, it throws "unresolved reference") ...
I'm facing java.io.NotSerializableException when trying to writeObject and object of a data class into an ObjectOutputStream. Following is the main ac ...
I have a MutableMap that its keys are objects from a DataClass (User dataclass), and the values are arrays from other Dataclass (Dog dataclass). If i ...
Trying to pass a data class User from one Activity to another using Intent. My putExtra looks like this using my observe fun: My get routine looks ...
I have a data class in kotlin , which is also a Room entity. Eg : I want to get all the values of @ColumnInfo(name) , ie I want all the Room anotat ...
So for this project, I am setting up a Login Screen that logs into a database that is suppose to validate the email. It's my first time actually doing ...
I have this data class written: package com.my.app data class User( var uid: String, var nickname: String, var email: String, var de ...
I think I'm missing a core concept of Jetpack Compose here. I'm running into an issue when I'm trying to change a non-constructor data class property ...
I have a json like this. I need to convert it to data class I define the following data class And the result always show className=> A01, ...
i'm adding property validation to an existing big project. It has hundrets of webservices and there are some that have simple numbers as names. Now im ...
I am trying to figure out how to loop a data class. I have a function called getAges() which contains a listof Ages from 1 - 10. Each age are called f ...
The problem goes away when instead of data class I use simply a class or instead of a MutableSet I use an ArrayList. I am trying to understand what is ...
I am working on a project where one of the API is giving a list of items inside JSON Object and not in JSON Array. See the image below. When I crea ...
I'm looking for a way to write a Kotlin data class that compiles the annotations to the same bytecode as the following Java class: public class Pet { ...
I am working on an Android app and I am trying to find a way to a data class which contain optional parameters. the data class is a part of Retrofit c ...
I have data class in Kotlin: data class Foo(a: String, ...) I would like to make a copy of it with a changed only if some conditions are met. some ...
So I am working with custom components in android and i was looking for a way to set attributes in the component programmatically and i came across do ...
I am trying to convert a custom Data class object to a String and vice versa. How can I achieve this? I read about Serialization and Parcelable but I ...
Is there a syntactic sugar in Kotlin to iterate on each field/property value of a data class? Sample: Then check if any of the property's value is ...