Message constructor

Message({
  1. String? name,
  2. String? content,
  3. String? languageCode,
  4. String? participant,
  5. Participant_Role? participantRole,
  6. Timestamp? createTime,
  7. MessageAnnotation? messageAnnotation,
})

Implementation

factory Message({
  $core.String? name,
  $core.String? content,
  $core.String? languageCode,
  $core.String? participant,
  Participant_Role? participantRole,
  $22.Timestamp? createTime,
  MessageAnnotation? messageAnnotation,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (content != null) {
    _result.content = content;
  }
  if (languageCode != null) {
    _result.languageCode = languageCode;
  }
  if (participant != null) {
    _result.participant = participant;
  }
  if (participantRole != null) {
    _result.participantRole = participantRole;
  }
  if (createTime != null) {
    _result.createTime = createTime;
  }
  if (messageAnnotation != null) {
    _result.messageAnnotation = messageAnnotation;
  }
  return _result;
}