toJson static method
- ChatStyle chatStyle
Implementation
static Map<String, dynamic> toJson(ChatStyle chatStyle) {
Map<String, dynamic> json = {};
if (chatStyle.textColor != null) {
json["textColor"] = chatStyle.textColor!;
}
if (chatStyle.textShadow != null) {
final textShadowJson =
TextShadowConfigurationUtil.toJson(chatStyle.textShadow);
if (textShadowJson != null) {
json["textShadow"] = textShadowJson;
}
}
return json;
}