The Converter serves as a bridge between different data representations. The Store uses the Converter to convert data between the network, local database, and domain models.
The Converter interface has the following structure:
Copy
interface Converter<Network : Any, Local : Any, Output : Any> { fun fromNetworkToLocal(network: Network): Local fun fromOutputToLocal(output: Output): Local}
The type representing the data fetched from the remote source. For example, if
fetching a list of posts, this could be List<Post> representing the list
of posts.