ChunkMetadata constructor

ChunkMetadata({
  1. String? sessionId,
  2. Int64? number,
  3. Int64? size,
  4. Hint? hint,
  5. List<int>? md5,
  6. int? crc32c,
  7. bool? hasCrc32c_7,
})

Implementation

factory ChunkMetadata({
  $core.String? sessionId,
  $fixnum.Int64? number,
  $fixnum.Int64? size,
  Hint? hint,
  $core.List<$core.int>? md5,
  $core.int? crc32c,
  $core.bool? hasCrc32c_7,
}) {
  final _result = create();
  if (sessionId != null) {
    _result.sessionId = sessionId;
  }
  if (number != null) {
    _result.number = number;
  }
  if (size != null) {
    _result.size = size;
  }
  if (hint != null) {
    _result.hint = hint;
  }
  if (md5 != null) {
    _result.md5 = md5;
  }
  if (crc32c != null) {
    _result.crc32c = crc32c;
  }
  if (hasCrc32c_7 != null) {
    _result.hasCrc32c_7 = hasCrc32c_7;
  }
  return _result;
}