package com.gh.gamecenter.entity

import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.IgnoredOnParcel
import kotlinx.parcelize.Parcelize

@Parcelize
data class CategoryEntity(
    @SerializedName("_id")
    private var _id: String? = null,
    var icon: String? = "",
    var name: String? = "",
    var recommend: Boolean? = false,
    var data: List<CategoryEntity>? = null
) : Parcelable {

    val id: String
        get() = _id ?: ""

    @IgnoredOnParcel
    var selected: Boolean = false
}