Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit ef8d5a1

Browse files
committed
マッピング時にフィールドを無視する
1 parent f0f5394 commit ef8d5a1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,3 +569,15 @@ class Foo(
569569
val description: String = ""
570570
)
571571
```
572+
573+
#### Ignore the field when mapping
574+
If you want to ignore a field for mapping for some reason, you can use the `KGetterIgnore` annotation.
575+
For example, if you enter the following class of `Src`, the `param1` field will not be read.
576+
577+
```kotlin
578+
data class Src(
579+
@KGetterIgnore
580+
val param1: Int,
581+
val param2: Int
582+
)
583+
```

0 commit comments

Comments
 (0)