toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'title': title,
    'appbar_color': appbarColor?.value,
    'text_style': textStyle != null
        ? {
            'font_size': textStyle?.fontSize,
            'color': textStyle?.color?.value,
            // Add more TextStyle properties here if necessary
          }
        : null,
    'icon_theme': iconTheme != null
        ? {
            'color': iconTheme?.color?.value,
            'size': iconTheme?.size,
            // Add more IconThemeData properties here if necessary
          }
        : null,
    'initial_camera_side': initialCameraSide?.name,
  };
}