Map<String, dynamic> toJson() { final stylePassthrough = this.stylePassthrough; return { if (stylePassthrough != null) 'stylePassthrough': stylePassthrough.toValue(), }; }