dcoDecodeDuration function
This is only intended to be used by automatically generated code, instead of developers.
Implementation
Duration dcoDecodeDuration(int ts) {
  if (kIsWeb) {
    return Duration(milliseconds: ts);
  }
  return Duration(microseconds: ts);
}