UploadMetadata constructor

UploadMetadata({
  1. String? partId,
  2. String? componentType,
  3. String? componentName,
  4. String? methodName,
  5. DataType? type,
  6. String? fileName,
  7. Map<String, Any>? methodParameters,
  8. String? fileExtension,
  9. Iterable<String>? tags,
})

Implementation

factory UploadMetadata({
  $core.String? partId,
  $core.String? componentType,
  $core.String? componentName,
  $core.String? methodName,
  DataType? type,
  $core.String? fileName,
  $core.Map<$core.String, $45.Any>? methodParameters,
  $core.String? fileExtension,
  $core.Iterable<$core.String>? tags,
}) {
  final $result = create();
  if (partId != null) {
    $result.partId = partId;
  }
  if (componentType != null) {
    $result.componentType = componentType;
  }
  if (componentName != null) {
    $result.componentName = componentName;
  }
  if (methodName != null) {
    $result.methodName = methodName;
  }
  if (type != null) {
    $result.type = type;
  }
  if (fileName != null) {
    $result.fileName = fileName;
  }
  if (methodParameters != null) {
    $result.methodParameters.addAll(methodParameters);
  }
  if (fileExtension != null) {
    $result.fileExtension = fileExtension;
  }
  if (tags != null) {
    $result.tags.addAll(tags);
  }
  return $result;
}