buildXml method

void buildXml(
  1. XmlBuilder builder
)

Implementation

void buildXml(XmlBuilder builder) {
  builder.element("image", nest: () {
    if (title != null) {
      builder.element("title", nest: title!);
    }

    if (link != null) {
      builder.element("link", nest: link!);
    }

    if (url != null) {
      builder.element("url", nest: url!);
    }
  });
}