parse static method

GreetingSender parse(
  1. String? v
)

Parses the wire value; unknown values fall back to none.

Implementation

static GreetingSender parse(String? v) => v == 'online_agent' ? onlineAgent : none;