Attachment constructor

Attachment({
  1. Attachment_ContentType? contentType,
  2. String? fileName,
  3. List<int>? fileContents,
})

Implementation

factory Attachment({
  Attachment_ContentType? contentType,
  $core.String? fileName,
  $core.List<$core.int>? fileContents,
}) {
  final $result = create();
  if (contentType != null) {
    $result.contentType = contentType;
  }
  if (fileName != null) {
    $result.fileName = fileName;
  }
  if (fileContents != null) {
    $result.fileContents = fileContents;
  }
  return $result;
}