IMapperWebService

interface IMapperWebService<Entity, Model> : IMapper<Entity, Model> , KoinComponent

Created by alvaro on 21/3/18.

Properties

Link copied to clipboard
open val gson: Gson

Functions

Link copied to clipboard
open fun entityToJson(entity: Entity): JsonObject
Link copied to clipboard
open fun entityToJsonArray(entities: MutableList<Entity>): JsonArray
Link copied to clipboard
abstract fun getClassEntity(): Class<Entity>
Link copied to clipboard
abstract fun getClassListEntity(): Type
Link copied to clipboard
open fun getKoin(): Koin
Link copied to clipboard
open fun modelToJson(model: Model): JsonObject
Link copied to clipboard
open fun modelToJsonArray(models: MutableList<Model>): JsonArray
Link copied to clipboard
open fun toEntity(model: Model): Entity
open fun toEntity(jsonElement: JsonObject): Entity
open fun toEntity(json: String): Entity
Link copied to clipboard
open fun toListEntity(jsonArray: JsonArray): MutableList<Entity>
Link copied to clipboard
open fun toListModel(jsonArray: JsonArray): MutableList<Model>
Link copied to clipboard
abstract fun toModel(entity: Entity): Model
open fun toModel(jsonObject: JsonObject): Model
open fun toModel(json: String): Model