Key constructor

Key({
  1. String? name,
  2. String? displayName,
  3. String? keyString,
  4. Timestamp? createTime,
  5. String? uid,
  6. Timestamp? updateTime,
  7. Timestamp? deleteTime,
  8. Iterable<MapEntry<String, String>>? annotations,
  9. Restrictions? restrictions,
  10. String? etag,
})

Implementation

factory Key({
  $core.String? name,
  $core.String? displayName,
  $core.String? keyString,
  $0.Timestamp? createTime,
  $core.String? uid,
  $0.Timestamp? updateTime,
  $0.Timestamp? deleteTime,
  $core.Iterable<$core.MapEntry<$core.String, $core.String>>? annotations,
  Restrictions? restrictions,
  $core.String? etag,
}) {
  final result = create();
  if (name != null) result.name = name;
  if (displayName != null) result.displayName = displayName;
  if (keyString != null) result.keyString = keyString;
  if (createTime != null) result.createTime = createTime;
  if (uid != null) result.uid = uid;
  if (updateTime != null) result.updateTime = updateTime;
  if (deleteTime != null) result.deleteTime = deleteTime;
  if (annotations != null) result.annotations.addEntries(annotations);
  if (restrictions != null) result.restrictions = restrictions;
  if (etag != null) result.etag = etag;
  return result;
}