File constructor

File({
  1. String? name,
  2. Timestamp? createdAt,
  3. String? url,
  4. String? contentType,
  5. String? path,
  6. Duration? duration,
  7. Int64? size,
  8. List<int>? data,
})

Implementation

factory File({
  $core.String? name,
  $2.Timestamp? createdAt,
  $core.String? url,
  $core.String? contentType,
  $core.String? path,
  $4.Duration? duration,
  $fixnum.Int64? size,
  $core.List<$core.int>? data,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (url != null) {
    _result.url = url;
  }
  if (contentType != null) {
    _result.contentType = contentType;
  }
  if (path != null) {
    _result.path = path;
  }
  if (duration != null) {
    _result.duration = duration;
  }
  if (size != null) {
    _result.size = size;
  }
  if (data != null) {
    _result.data = data;
  }
  return _result;
}