https://kotlinlang.org logo
#anko
Title
# anko
s

sqia09

09/13/2017, 10:09 AM
data class RoutesResponse(@SerializedName("result") val result: String, @SerializedName("freason") val freason: String, @SerializedName("route") var routesList: MutableList<RouteObject>, @SerializedName("route_site") var routeSiteList: MutableList<RouteSite>) : Parcelable { companion object { @JvmField val CREATOR: Parcelable.Creator<RoutesResponse> = object : Parcelable.Creator<RoutesResponse>{ override fun createFromParcel(p0: Parcel): RoutesResponse = RoutesResponse(p0) override fun newArray(p0: Int): Array<RoutesResponse?> = arrayOfNulls(p0) } } constructor(source: Parcel) : this(source.readString(), source.readString(), source.createTypedArrayList(RouteObject.CREATOR), source.createTypedArrayList(RouteSite.CREATOR)) override fun describeContents() = 0 override fun writeToParcel(p0: Parcel?, p1: Int) { p0?.let { with(it){ writeString(result) writeString(freason) writeTypedList(routesList) writeTypedList(routeSiteList) } } } }