parseBase static method

GenFieldKind parseBase(
  1. String wire
)

Implementation

static GenFieldKind parseBase(String wire) => switch (wire) {
  'string' => string,
  'integer' => integer,
  'double' => double_,
  'boolean' => boolean,
  'timestamp' => timestamp,
  'enum' => enum_,
  'reference' => reference,
  'map' => map,
  'geopoint' => geopoint,
  'bytes' => bytes,
  _ => throw FormatException("Unknown field type '$wire'."),
};