stringify static method

StringifiedValuesDeviceVendorInfoDictionary stringify(
  1. DeviceVendorInfoDictionary dictionary
)

Wrap DeviceVendorInfoDictionary to notate values as String.

This method should be call once, and the returned dictionary cannot reapply into stringify again. Otherwise, it throws SameNestedDictionaryTypeError.

Implementation

static StringifiedValuesDeviceVendorInfoDictionary stringify(
    DeviceVendorInfoDictionary dictionary) {
  if (dictionary is _StringifiedValuesDeviceVendorInfoDictionary) {
    throw SameNestedDictionaryTypeError<
        StringifiedValuesDeviceVendorInfoDictionary>._();
  }

  return _StringifiedValuesDeviceVendorInfoDictionary(dictionary);
}