Recognizer constructor

Recognizer({
  1. String? name,
  2. String? uid,
  3. String? displayName,
  4. @Deprecated('This field is deprecated.') String? model,
  5. RecognitionConfig? defaultRecognitionConfig,
  6. Map<String, String>? annotations,
  7. Recognizer_State? state,
  8. Timestamp? createTime,
  9. Timestamp? updateTime,
  10. Timestamp? deleteTime,
  11. String? etag,
  12. bool? reconciling,
  13. Timestamp? expireTime,
  14. String? kmsKeyName,
  15. String? kmsKeyVersionName,
  16. @Deprecated('This field is deprecated.') Iterable<String>? languageCodes,
})

Implementation

factory Recognizer({
  $core.String? name,
  $core.String? uid,
  $core.String? displayName,
  @$core.Deprecated('This field is deprecated.') $core.String? model,
  RecognitionConfig? defaultRecognitionConfig,
  $core.Map<$core.String, $core.String>? annotations,
  Recognizer_State? state,
  $3.Timestamp? createTime,
  $3.Timestamp? updateTime,
  $3.Timestamp? deleteTime,
  $core.String? etag,
  $core.bool? reconciling,
  $3.Timestamp? expireTime,
  $core.String? kmsKeyName,
  $core.String? kmsKeyVersionName,
  @$core.Deprecated('This field is deprecated.')
  $core.Iterable<$core.String>? languageCodes,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (uid != null) {
    $result.uid = uid;
  }
  if (displayName != null) {
    $result.displayName = displayName;
  }
  if (model != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.model = model;
  }
  if (defaultRecognitionConfig != null) {
    $result.defaultRecognitionConfig = defaultRecognitionConfig;
  }
  if (annotations != null) {
    $result.annotations.addAll(annotations);
  }
  if (state != null) {
    $result.state = state;
  }
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (updateTime != null) {
    $result.updateTime = updateTime;
  }
  if (deleteTime != null) {
    $result.deleteTime = deleteTime;
  }
  if (etag != null) {
    $result.etag = etag;
  }
  if (reconciling != null) {
    $result.reconciling = reconciling;
  }
  if (expireTime != null) {
    $result.expireTime = expireTime;
  }
  if (kmsKeyName != null) {
    $result.kmsKeyName = kmsKeyName;
  }
  if (kmsKeyVersionName != null) {
    $result.kmsKeyVersionName = kmsKeyVersionName;
  }
  if (languageCodes != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.languageCodes.addAll(languageCodes);
  }
  return $result;
}