Kotlin实现Parcelable
2020-01-15 本文已影响0人
中路杀神ai
.build
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android{}
androidExtensions {
experimental = true
}
@SuppressLint("ParcelCreator")
@Parcelize
data class SystemBean(
val id:Int,
val name:String,
val children:List<SystemChildBean>
):Parcelable
```