toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'themeParameters',
    if (extra != null) '@extra': extra,
    'background_color': background_color,
    'secondary_background_color': secondary_background_color,
    'text_color': text_color,
    'hint_color': hint_color,
    'link_color': link_color,
    'button_color': button_color,
    'button_text_color': button_text_color
  };
}