Skip to content

Function: fromKeyValuePair() ​

fromKeyValuePair(pair): MessageParameter | undefined

Parses a single KeyValuePair into a MessageParameter. Returns undefined for unrecognized parameter types (be forgiving). Still throws ProtocolViolationError for known types with invalid values.

Parameters ​

pair ​

KeyValuePair

Returns ​

MessageParameter | undefined