toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
      '@type': CONSTRUCTOR,
      'background_color': backgroundColor,
      'secondary_background_color': secondaryBackgroundColor,
      'header_background_color': headerBackgroundColor,
      'section_background_color': sectionBackgroundColor,
      'text_color': textColor,
      'accent_text_color': accentTextColor,
      'section_header_text_color': sectionHeaderTextColor,
      'subtitle_text_color': subtitleTextColor,
      'destructive_text_color': destructiveTextColor,
      'hint_color': hintColor,
      'link_color': linkColor,
      'button_color': buttonColor,
      'button_text_color': buttonTextColor,
    };