PrinterFontType.deserialize constructor

PrinterFontType.deserialize(
  1. XmlElement xml
)

Implementation

PrinterFontType.deserialize(XmlElement xml)
    : this.fontName = xml.getAttribute('fontName') ?? '',
      this.fontType = xml.getAttribute('fontType') ?? '',
      this.fontBaseWidth =
          int.tryParse(xml.getAttribute('fontBaseWidth') ?? '')!,
      this.fontBaseHeight =
          int.tryParse(xml.getAttribute('fontBaseHeight') ?? '')!;