func (m Identity) ConvertIdentityFromModel() *app.Identity {
	id := m.ID.String()
	converted := app.Identity{
		Data: &app.IdentityData{
			ID:   &id,
			Type: "identities",
			Attributes: &app.IdentityDataAttributes{
				Username:     &m.Username,
				ProviderType: &m.ProviderType,
			},
		},
	}
	return &converted
}
// TODO: Remove. Data layer should not know about the REST layer. Moved to /users.go
// ConvertIdentityFromModel convert identity from model to app representation
Remove. Data layer should not know about the REST layer. Moved to /users.go
ConvertIdentityFromModel convert identity from model to app representation
// TODO : Remove . Data layer should not know about the REST layer . Moved to / users . go // ConvertIdentityFromModel convert identity from model to app representation
func (m Identity) ConvertIdentityFromModel() *app.Identity {
	id := m.ID.String()
	converted := app.Identity{
		Data: &app.IdentityData{
			ID:   &id,
			Type: "identities",
			Attributes: &app.IdentityDataAttributes{
				Username:     &m.Username,
				ProviderType: &m.ProviderType,
			},
		},
	}
	return &converted
}
func ( m Identity ) ConvertIdentityFromModel ( ) * app . Identity { id := m . ID . String ( ) converted := app . Identity { Data : & app . IdentityData { ID : & id , Type : " " , Attributes : & app . IdentityDataAttributes { Username : & m . Username , ProviderType : & m . ProviderType , } , } , } return & converted }
Remove.
Remove .