StorageObject constructor

StorageObject({
  1. String? collection,
  2. String? key,
  3. String? userId,
  4. String? value,
  5. String? version,
  6. int? permissionRead,
  7. int? permissionWrite,
  8. Timestamp? createTime,
  9. Timestamp? updateTime,
})

Implementation

factory StorageObject({
  $core.String? collection,
  $core.String? key,
  $core.String? userId,
  $core.String? value,
  $core.String? version,
  $core.int? permissionRead,
  $core.int? permissionWrite,
  $0.Timestamp? createTime,
  $0.Timestamp? updateTime,
}) {
  final _result = create();
  if (collection != null) {
    _result.collection = collection;
  }
  if (key != null) {
    _result.key = key;
  }
  if (userId != null) {
    _result.userId = userId;
  }
  if (value != null) {
    _result.value = value;
  }
  if (version != null) {
    _result.version = version;
  }
  if (permissionRead != null) {
    _result.permissionRead = permissionRead;
  }
  if (permissionWrite != null) {
    _result.permissionWrite = permissionWrite;
  }
  if (createTime != null) {
    _result.createTime = createTime;
  }
  if (updateTime != null) {
    _result.updateTime = updateTime;
  }
  return _result;
}