BaseModelIDExtension extension

Provides convenience functions for interacting with the id and type of a BaseModel

on

Properties

autoGenId String
Returns id if that value is not null. Otherwise will automatically generate a new value for id with the idSuffix setter.
no setter
idSuffix String?
Returns the last part of this id, which is always a unique identifier.
getter/setter pair

Methods

prefixTypeForId(String idSuffix) String
Prefixes this BaseModel's type to idSuffix