CustomClass constructor

CustomClass({
  1. String? name,
  2. String? uid,
  3. String? displayName,
  4. Iterable<CustomClass_ClassItem>? items,
  5. Timestamp? createTime,
  6. Timestamp? updateTime,
  7. Timestamp? deleteTime,
  8. Timestamp? expireTime,
  9. Map<String, String>? annotations,
  10. String? etag,
  11. bool? reconciling,
  12. String? kmsKeyName,
  13. String? kmsKeyVersionName,
  14. CustomClass_State? state,
})

Implementation

factory CustomClass({
  $core.String? name,
  $core.String? uid,
  $core.String? displayName,
  $core.Iterable<CustomClass_ClassItem>? items,
  $3.Timestamp? createTime,
  $3.Timestamp? updateTime,
  $3.Timestamp? deleteTime,
  $3.Timestamp? expireTime,
  $core.Map<$core.String, $core.String>? annotations,
  $core.String? etag,
  $core.bool? reconciling,
  $core.String? kmsKeyName,
  $core.String? kmsKeyVersionName,
  CustomClass_State? state,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (uid != null) {
    $result.uid = uid;
  }
  if (displayName != null) {
    $result.displayName = displayName;
  }
  if (items != null) {
    $result.items.addAll(items);
  }
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (updateTime != null) {
    $result.updateTime = updateTime;
  }
  if (deleteTime != null) {
    $result.deleteTime = deleteTime;
  }
  if (expireTime != null) {
    $result.expireTime = expireTime;
  }
  if (annotations != null) {
    $result.annotations.addAll(annotations);
  }
  if (etag != null) {
    $result.etag = etag;
  }
  if (reconciling != null) {
    $result.reconciling = reconciling;
  }
  if (kmsKeyName != null) {
    $result.kmsKeyName = kmsKeyName;
  }
  if (kmsKeyVersionName != null) {
    $result.kmsKeyVersionName = kmsKeyVersionName;
  }
  if (state != null) {
    $result.state = state;
  }
  return $result;
}