encodeObject method

void encodeObject(
  1. String key,
  2. Coding? value
)

Encodes a Coding object into this object for key.

This invokes Coding.encode on value and adds the object to this archive for the key key.

Implementation

void encodeObject(String key, Coding? value) {
  if (value == null) {
    return;
  }

  _map[key] = _encodedObject(value);
}