Topic property

String get Topic
Gets the topic of this Conversation.

Implementation

String get Topic {
  // This property need not be present hence the property bag may not contain it.
  // Check for the presence of this property before accessing it.
  if (PropertyBag.Contains(ConversationSchema.Topic)) {
    OutParam<String> returnValue = OutParam<String>();
    PropertyBag.TryGetPropertyTypeGeneric<String>(
      ConversationSchema.Topic,
      returnValue,
    );
    return returnValue.param ?? "";
  }

  return "";
}