BusinessStatus$cast function

BusinessStatus? BusinessStatus$cast(
  1. dynamic value
)

Implementation

BusinessStatus? BusinessStatus$cast(value) {
  if (value == BusinessStatus.CLOSED_PERMANENTLY)
    return BusinessStatus.CLOSED_PERMANENTLY;
  if (value == BusinessStatus.CLOSED_TEMPORARILY)
    return BusinessStatus.CLOSED_TEMPORARILY;
  if (value == BusinessStatus.OPERATIONAL) return BusinessStatus.OPERATIONAL;
  return null;
}