merge method

This sheet, with any unset value taken from other, field by field.

Implementation

GptMarkdownStyleSheet merge(GptMarkdownStyleSheet? other) {
  if (other == null) {
    return this;
  }
  return GptMarkdownStyleSheet(
    blockQuote: blockQuote?.merge(other.blockQuote) ?? other.blockQuote,
    heading: heading?.merge(other.heading) ?? other.heading,
    link: link?.merge(other.link) ?? other.link,
    inlineCode: inlineCode?.merge(other.inlineCode) ?? other.inlineCode,
    list: list?.merge(other.list) ?? other.list,
    checkbox: checkbox?.merge(other.checkbox) ?? other.checkbox,
    codeBlock: codeBlock?.merge(other.codeBlock) ?? other.codeBlock,
    table: table?.merge(other.table) ?? other.table,
    image: image?.merge(other.image) ?? other.image,
    hr: hr?.merge(other.hr) ?? other.hr,
    sourceTag: sourceTag?.merge(other.sourceTag) ?? other.sourceTag,
    latex: latex?.merge(other.latex) ?? other.latex,
    alert: alert?.merge(other.alert) ?? other.alert,
    blockSpacing: blockSpacing ?? other.blockSpacing,
  );
}