We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb7d1dc commit 169045bCopy full SHA for 169045b
README.md
@@ -47,14 +47,24 @@ Given an exisiting data class:
47
For example:
48
49
```kotlin
50
+interface SampleInterface
51
+annotation class SampleAnnotation
52
+
53
/**
54
* Represents a person.
55
* @property name The full name.
56
* @property nickname The nickname.
57
* @property age The age.
58
*/
59
@DataCompat
-private data class PersonData(val name: String, val nickname: String? = null, val age: Int)
60
+@SampleAnnotation
61
+private data class PersonData(
62
+ @Default("\"John\"")
63
+ val name: String,
64
+ val nickname: String?,
65
+ @Default("42")
66
+ val age: Int
67
+) : SampleInterface
68
```
69
70
After compilation, the following class will be generated:
0 commit comments