Conversation constructor

Conversation({
  1. String? name,
  2. Conversation_LifecycleState? lifecycleState,
  3. String? conversationProfile,
  4. ConversationPhoneNumber? phoneNumber,
  5. Timestamp? startTime,
  6. Timestamp? endTime,
  7. Conversation_ConversationStage? conversationStage,
})

Implementation

factory Conversation({
  $core.String? name,
  Conversation_LifecycleState? lifecycleState,
  $core.String? conversationProfile,
  ConversationPhoneNumber? phoneNumber,
  $22.Timestamp? startTime,
  $22.Timestamp? endTime,
  Conversation_ConversationStage? conversationStage,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (lifecycleState != null) {
    _result.lifecycleState = lifecycleState;
  }
  if (conversationProfile != null) {
    _result.conversationProfile = conversationProfile;
  }
  if (phoneNumber != null) {
    _result.phoneNumber = phoneNumber;
  }
  if (startTime != null) {
    _result.startTime = startTime;
  }
  if (endTime != null) {
    _result.endTime = endTime;
  }
  if (conversationStage != null) {
    _result.conversationStage = conversationStage;
  }
  return _result;
}