toJsonApi

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

Serialize the resource to a JSON:API object.