toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  if (this.styleForBackground != null) {
    data['styleForBackground'] = this.styleForBackground!.toJson();
  }
  if (this.styleForText != null) {
    data['styleForText'] = this.styleForText!.toJson();
  }
  if (this.slotData != null) {
    data['slotData'] = this.slotData!.toJson();
  }
  if (this.styleForBtn != null) {
    data['styleForBtn'] = this.styleForBtn!.toJson();
  }
  return data;
}