encode method

void encode(
  1. KeyedArchive object
)
override

Implementation

void encode(KeyedArchive object) {
  super.encode(object);

  if (url == null) {
    throw new ArgumentError(
        "APIServerDescription must have non-null values for: 'url'.");
  }

  object.encode("url", url);
  object.encode("description", description);
  object.encodeObjectMap("variables", variables);
}