hasItem static method

bool hasItem(
  1. Serializer<Object?> serializer
)

true when serializer was made with one item (not a list and not null). For the JSON writer that @Serialize() makes.

Implementation

static bool hasItem(Serializer<Object?> serializer) {
  return serializer._one;
}