File constructor

File({
  1. String? name,
  2. Timestamp? createdAt,
  3. String? url,
  4. FileType? fileType,
})

Implementation

factory File({
  $core.String? name,
  $0.Timestamp? createdAt,
  $core.String? url,
  FileType? fileType,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (url != null) {
    _result.url = url;
  }
  if (fileType != null) {
    _result.fileType = fileType;
  }
  return _result;
}