public IEntity ConvertToEntity() { return(new YDispositivo { IdDispositivo = this.IdDispositivo, TokenDispositivo = this.TokenDispositivo, NombreSistemaOperativo = this.NombreSistemaOperativo, VersionSistemaOperativo = this.VersionSistemaOperativo, Tipo = this.Tipo.GetStringValue(), NombreNavegador = this.NombreNavegador, VersionNavegador = this.VersionNavegador, TokenNotificacion = this.TokenNotificacion, PlataformaNotificacion = this.PlataformaNotificacion, Plantillas = ModelsMapper.GetEntityListFromModel <Plantilla, YPlantilla>(this.Plantillas), Suscripciones = ModelsMapper.GetEntityListFromModel <Dato, YDato>(this.Suscripciones) }); }