encode static method

dynamic encode(
  1. TimeUnit data
)

Implementation

static dynamic encode(TimeUnit data) => data.value;