toJsonApi

open fun toJsonApi(onlyDirty: Boolean = false): Map<String, Any?>

Serialize the resource to a JSON:API object.