FileInfo constructor
FileInfo({
- String? fileId,
- String? fileSrc,
- String? fileName,
- String? contentType,
- String? fileExt,
- FileType? fileType,
- Int64? fileSize,
- List<
int> ? hashSm3, - List<
int> ? hashSha256, - int? fileWidth,
- int? fileHeight,
- Int64? fileTime,
- String? fileLocation,
- Geolocation? position,
- Timestamp? createDate,
- Int64? chunkOffset,
Implementation
factory FileInfo({
$core.String? fileId,
$core.String? fileSrc,
$core.String? fileName,
$core.String? contentType,
$core.String? fileExt,
FileType? fileType,
$fixnum.Int64? fileSize,
$core.List<$core.int>? hashSm3,
$core.List<$core.int>? hashSha256,
$core.int? fileWidth,
$core.int? fileHeight,
$fixnum.Int64? fileTime,
$core.String? fileLocation,
$0.Geolocation? position,
$1.Timestamp? createDate,
$fixnum.Int64? chunkOffset,
}) {
final result = create();
if (fileId != null) result.fileId = fileId;
if (fileSrc != null) result.fileSrc = fileSrc;
if (fileName != null) result.fileName = fileName;
if (contentType != null) result.contentType = contentType;
if (fileExt != null) result.fileExt = fileExt;
if (fileType != null) result.fileType = fileType;
if (fileSize != null) result.fileSize = fileSize;
if (hashSm3 != null) result.hashSm3 = hashSm3;
if (hashSha256 != null) result.hashSha256 = hashSha256;
if (fileWidth != null) result.fileWidth = fileWidth;
if (fileHeight != null) result.fileHeight = fileHeight;
if (fileTime != null) result.fileTime = fileTime;
if (fileLocation != null) result.fileLocation = fileLocation;
if (position != null) result.position = position;
if (createDate != null) result.createDate = createDate;
if (chunkOffset != null) result.chunkOffset = chunkOffset;
return result;
}