toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (firstBandColor != null) 'firstBandColor': firstBandColor!,
      if (firstBandColorStyle != null)
        'firstBandColorStyle': firstBandColorStyle!,
      if (footerColor != null) 'footerColor': footerColor!,
      if (footerColorStyle != null) 'footerColorStyle': footerColorStyle!,
      if (headerColor != null) 'headerColor': headerColor!,
      if (headerColorStyle != null) 'headerColorStyle': headerColorStyle!,
      if (secondBandColor != null) 'secondBandColor': secondBandColor!,
      if (secondBandColorStyle != null)
        'secondBandColorStyle': secondBandColorStyle!,
    };