package com.diegocayo.organizame.data.mapper

import com.diegocayo.organizame.data.local.entity.SubjectEntity
import com.diegocayo.organizame.domain.model.Subject

fun SubjectEntity.toModel() = Subject(
    id = id,
    name = name,
    abbreviation = abbreviation,
    color = color,

)

fun Subject.toEntity() = SubjectEntity(
    id = id,
    name = name,
    abbreviation = abbreviation,
    color = color
) 