Create a Model | raywenderlich.com

In this episode, create the channel adapter for our channels screen.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/18177135-build-an-app-like-discord-with-firebase/lessons/15

A data class is better for the models like:

@IgnoreExtraProperties
data class Channel(
    @DocumentId
    var id: String? = null,
    var name: String? = null,
    var description: String? = null
)