Agent constructor

Agent({
  1. String? parent,
  2. String? displayName,
  3. String? defaultLanguageCode,
  4. Iterable<String>? supportedLanguageCodes,
  5. String? timeZone,
  6. String? description,
  7. String? avatarUri,
  8. bool? enableLogging,
  9. @Deprecated('This field is deprecated.') Agent_MatchMode? matchMode,
  10. double? classificationThreshold,
  11. Agent_ApiVersion? apiVersion,
  12. Agent_Tier? tier,
})

Implementation

factory Agent({
  $core.String? parent,
  $core.String? displayName,
  $core.String? defaultLanguageCode,
  $core.Iterable<$core.String>? supportedLanguageCodes,
  $core.String? timeZone,
  $core.String? description,
  $core.String? avatarUri,
  $core.bool? enableLogging,
  @$core.Deprecated('This field is deprecated.') Agent_MatchMode? matchMode,
  $core.double? classificationThreshold,
  Agent_ApiVersion? apiVersion,
  Agent_Tier? tier,
}) {
  final _result = create();
  if (parent != null) {
    _result.parent = parent;
  }
  if (displayName != null) {
    _result.displayName = displayName;
  }
  if (defaultLanguageCode != null) {
    _result.defaultLanguageCode = defaultLanguageCode;
  }
  if (supportedLanguageCodes != null) {
    _result.supportedLanguageCodes.addAll(supportedLanguageCodes);
  }
  if (timeZone != null) {
    _result.timeZone = timeZone;
  }
  if (description != null) {
    _result.description = description;
  }
  if (avatarUri != null) {
    _result.avatarUri = avatarUri;
  }
  if (enableLogging != null) {
    _result.enableLogging = enableLogging;
  }
  if (matchMode != null) {
    // ignore: deprecated_member_use_from_same_package
    _result.matchMode = matchMode;
  }
  if (classificationThreshold != null) {
    _result.classificationThreshold = classificationThreshold;
  }
  if (apiVersion != null) {
    _result.apiVersion = apiVersion;
  }
  if (tier != null) {
    _result.tier = tier;
  }
  return _result;
}