PbMapKey Function(Object value) get withValue => switch (this) { PbIntMapKey() => (value) => PbIntMapKey(value as int), PbStringMapKey() => (value) => PbStringMapKey(value as String), };