toDocument method

  1. @override
Map<String, Object?> toDocument()
override

Implementation

@override
Map<String, Object?> toDocument() {
  final Map<String, dynamic>? formBackgroundMap =
      formBackground != null ? formBackground!.toDocument() : null;
  final Map<String, dynamic>? appBackgroundMap =
      appBackground != null ? appBackground!.toDocument() : null;
  final Map<String, dynamic>? formGroupTitleColorMap =
      formGroupTitleColor != null ? formGroupTitleColor!.toDocument() : null;
  final Map<String, dynamic>? formFieldTextColorMap =
      formFieldTextColor != null ? formFieldTextColor!.toDocument() : null;
  final Map<String, dynamic>? formFieldHeaderColorMap =
      formFieldHeaderColor != null
          ? formFieldHeaderColor!.toDocument()
          : null;
  final Map<String, dynamic>? formFieldFocusColorMap =
      formFieldFocusColor != null ? formFieldFocusColor!.toDocument() : null;
  final Map<String, dynamic>? listBackgroundMap =
      listBackground != null ? listBackground!.toDocument() : null;
  final Map<String, dynamic>? listTextItemColorMap =
      listTextItemColor != null ? listTextItemColor!.toDocument() : null;
  final Map<String, dynamic>? floatingButtonForegroundColorMap =
      floatingButtonForegroundColor != null
          ? floatingButtonForegroundColor!.toDocument()
          : null;
  final Map<String, dynamic>? floatingButtonBackgroundColorMap =
      floatingButtonBackgroundColor != null
          ? floatingButtonBackgroundColor!.toDocument()
          : null;
  final Map<String, dynamic>? dividerColorMap =
      dividerColor != null ? dividerColor!.toDocument() : null;
  final Map<String, dynamic>? topicContainerBackgroundMap =
      topicContainerBackground != null
          ? topicContainerBackground!.toDocument()
          : null;
  final Map<String, dynamic>? actionContainerBackgroundMap =
      actionContainerBackground != null
          ? actionContainerBackground!.toDocument()
          : null;
  final Map<String, dynamic>? appBarBGMap =
      appBarBG != null ? appBarBG!.toDocument() : null;
  final Map<String, dynamic>? appBarIconColorMap =
      appBarIconColor != null ? appBarIconColor!.toDocument() : null;
  final Map<String, dynamic>? appBarSelectedIconColorMap =
      appBarSelectedIconColor != null
          ? appBarSelectedIconColor!.toDocument()
          : null;
  final Map<String, dynamic>? appBarMenuBackgroundColorMap =
      appBarMenuBackgroundColor != null
          ? appBarMenuBackgroundColor!.toDocument()
          : null;
  final Map<String, dynamic>? bottomNavigationBarBGMap =
      bottomNavigationBarBG != null
          ? bottomNavigationBarBG!.toDocument()
          : null;
  final Map<String, dynamic>? drawerBGMap =
      drawerBG != null ? drawerBG!.toDocument() : null;
  final Map<String, dynamic>? drawerHeaderBGMap =
      drawerHeaderBG != null ? drawerHeaderBG!.toDocument() : null;
  final Map<String, dynamic>? profileDrawerBGMap =
      profileDrawerBG != null ? profileDrawerBG!.toDocument() : null;
  final Map<String, dynamic>? profileDrawerHeaderBGMap =
      profileDrawerHeaderBG != null
          ? profileDrawerHeaderBG!.toDocument()
          : null;
  final Map<String, dynamic>? backgroundColorHomeMenuMap =
      backgroundColorHomeMenu != null
          ? backgroundColorHomeMenu!.toDocument()
          : null;
  final Map<String, dynamic>? h1Map = h1 != null ? h1!.toDocument() : null;
  final Map<String, dynamic>? h2Map = h2 != null ? h2!.toDocument() : null;
  final Map<String, dynamic>? h3Map = h3 != null ? h3!.toDocument() : null;
  final Map<String, dynamic>? h4Map = h4 != null ? h4!.toDocument() : null;
  final Map<String, dynamic>? h5Map = h5 != null ? h5!.toDocument() : null;
  final Map<String, dynamic>? textFieldHeaderMap =
      textFieldHeader != null ? textFieldHeader!.toDocument() : null;
  final Map<String, dynamic>? fontTextMap =
      fontText != null ? fontText!.toDocument() : null;
  final Map<String, dynamic>? fontSmallTextMap =
      fontSmallText != null ? fontSmallText!.toDocument() : null;
  final Map<String, dynamic>? fontHighlight1Map =
      fontHighlight1 != null ? fontHighlight1!.toDocument() : null;
  final Map<String, dynamic>? fontHighlight2Map =
      fontHighlight2 != null ? fontHighlight2!.toDocument() : null;
  final Map<String, dynamic>? fontLinkMap =
      fontLink != null ? fontLink!.toDocument() : null;
  final Map<String, dynamic>? dialogBackgroundColorMap =
      dialogBackgroundColor != null
          ? dialogBackgroundColor!.toDocument()
          : null;
  final Map<String, dynamic>? dialogSeperatorColorMap =
      dialogSeperatorColor != null
          ? dialogSeperatorColor!.toDocument()
          : null;
  final Map<String, dynamic>? popupMenuButtonColorMap =
      popupMenuButtonColor != null
          ? popupMenuButtonColor!.toDocument()
          : null;
  final Map<String, dynamic>? textBubbleBackgroundColorMap =
      textBubbleBackgroundColor != null
          ? textBubbleBackgroundColor!.toDocument()
          : null;
  final Map<String, dynamic>? dropdownButtonnColorMap =
      dropdownButtonnColor != null
          ? dropdownButtonnColor!.toDocument()
          : null;
  final Map<String, dynamic>? listTileColorMap =
      listTileColor != null ? listTileColor!.toDocument() : null;

  Map<String, Object?> theDocument = HashMap();
  if (appId != null) {
    theDocument["appId"] = appId;
  } else {
    theDocument["appId"] = null;
  }
  if (formBackground != null) {
    theDocument["formBackground"] = formBackgroundMap;
  } else {
    theDocument["formBackground"] = null;
  }
  if (appBackground != null) {
    theDocument["appBackground"] = appBackgroundMap;
  } else {
    theDocument["appBackground"] = null;
  }
  if (formGroupTitleColor != null) {
    theDocument["formGroupTitleColor"] = formGroupTitleColorMap;
  } else {
    theDocument["formGroupTitleColor"] = null;
  }
  if (formFieldTextColor != null) {
    theDocument["formFieldTextColor"] = formFieldTextColorMap;
  } else {
    theDocument["formFieldTextColor"] = null;
  }
  if (formFieldHeaderColor != null) {
    theDocument["formFieldHeaderColor"] = formFieldHeaderColorMap;
  } else {
    theDocument["formFieldHeaderColor"] = null;
  }
  if (formFieldFocusColor != null) {
    theDocument["formFieldFocusColor"] = formFieldFocusColorMap;
  } else {
    theDocument["formFieldFocusColor"] = null;
  }
  if (listBackground != null) {
    theDocument["listBackground"] = listBackgroundMap;
  } else {
    theDocument["listBackground"] = null;
  }
  if (listTextItemColor != null) {
    theDocument["listTextItemColor"] = listTextItemColorMap;
  } else {
    theDocument["listTextItemColor"] = null;
  }
  if (floatingButtonForegroundColor != null) {
    theDocument["floatingButtonForegroundColor"] =
        floatingButtonForegroundColorMap;
  } else {
    theDocument["floatingButtonForegroundColor"] = null;
  }
  if (floatingButtonBackgroundColor != null) {
    theDocument["floatingButtonBackgroundColor"] =
        floatingButtonBackgroundColorMap;
  } else {
    theDocument["floatingButtonBackgroundColor"] = null;
  }
  if (dividerColor != null) {
    theDocument["dividerColor"] = dividerColorMap;
  } else {
    theDocument["dividerColor"] = null;
  }
  if (topicContainerBackground != null) {
    theDocument["topicContainerBackground"] = topicContainerBackgroundMap;
  } else {
    theDocument["topicContainerBackground"] = null;
  }
  if (actionContainerBackground != null) {
    theDocument["actionContainerBackground"] = actionContainerBackgroundMap;
  } else {
    theDocument["actionContainerBackground"] = null;
  }
  if (appBarBG != null) {
    theDocument["appBarBG"] = appBarBGMap;
  } else {
    theDocument["appBarBG"] = null;
  }
  if (appBarIconColor != null) {
    theDocument["appBarIconColor"] = appBarIconColorMap;
  } else {
    theDocument["appBarIconColor"] = null;
  }
  if (appBarSelectedIconColor != null) {
    theDocument["appBarSelectedIconColor"] = appBarSelectedIconColorMap;
  } else {
    theDocument["appBarSelectedIconColor"] = null;
  }
  if (appBarMenuBackgroundColor != null) {
    theDocument["appBarMenuBackgroundColor"] = appBarMenuBackgroundColorMap;
  } else {
    theDocument["appBarMenuBackgroundColor"] = null;
  }
  if (bottomNavigationBarBG != null) {
    theDocument["bottomNavigationBarBG"] = bottomNavigationBarBGMap;
  } else {
    theDocument["bottomNavigationBarBG"] = null;
  }
  if (drawerBG != null) {
    theDocument["drawerBG"] = drawerBGMap;
  } else {
    theDocument["drawerBG"] = null;
  }
  if (drawerHeaderBG != null) {
    theDocument["drawerHeaderBG"] = drawerHeaderBGMap;
  } else {
    theDocument["drawerHeaderBG"] = null;
  }
  if (profileDrawerBG != null) {
    theDocument["profileDrawerBG"] = profileDrawerBGMap;
  } else {
    theDocument["profileDrawerBG"] = null;
  }
  if (profileDrawerHeaderBG != null) {
    theDocument["profileDrawerHeaderBG"] = profileDrawerHeaderBGMap;
  } else {
    theDocument["profileDrawerHeaderBG"] = null;
  }
  if (backgroundColorHomeMenu != null) {
    theDocument["backgroundColorHomeMenu"] = backgroundColorHomeMenuMap;
  } else {
    theDocument["backgroundColorHomeMenu"] = null;
  }
  if (h1 != null) {
    theDocument["h1"] = h1Map;
  } else {
    theDocument["h1"] = null;
  }
  if (h2 != null) {
    theDocument["h2"] = h2Map;
  } else {
    theDocument["h2"] = null;
  }
  if (h3 != null) {
    theDocument["h3"] = h3Map;
  } else {
    theDocument["h3"] = null;
  }
  if (h4 != null) {
    theDocument["h4"] = h4Map;
  } else {
    theDocument["h4"] = null;
  }
  if (h5 != null) {
    theDocument["h5"] = h5Map;
  } else {
    theDocument["h5"] = null;
  }
  if (textFieldHeader != null) {
    theDocument["textFieldHeader"] = textFieldHeaderMap;
  } else {
    theDocument["textFieldHeader"] = null;
  }
  if (fontText != null) {
    theDocument["fontText"] = fontTextMap;
  } else {
    theDocument["fontText"] = null;
  }
  if (fontSmallText != null) {
    theDocument["fontSmallText"] = fontSmallTextMap;
  } else {
    theDocument["fontSmallText"] = null;
  }
  if (fontHighlight1 != null) {
    theDocument["fontHighlight1"] = fontHighlight1Map;
  } else {
    theDocument["fontHighlight1"] = null;
  }
  if (fontHighlight2 != null) {
    theDocument["fontHighlight2"] = fontHighlight2Map;
  } else {
    theDocument["fontHighlight2"] = null;
  }
  if (fontLink != null) {
    theDocument["fontLink"] = fontLinkMap;
  } else {
    theDocument["fontLink"] = null;
  }
  if (routeBuilder != null) {
    theDocument["routeBuilder"] = routeBuilder;
  } else {
    theDocument["routeBuilder"] = null;
  }
  if (routeAnimationDuration != null) {
    theDocument["routeAnimationDuration"] = routeAnimationDuration;
  } else {
    theDocument["routeAnimationDuration"] = null;
  }
  if (dialogBackgroundColor != null) {
    theDocument["dialogBackgroundColor"] = dialogBackgroundColorMap;
  } else {
    theDocument["dialogBackgroundColor"] = null;
  }
  if (dialogSeperatorColor != null) {
    theDocument["dialogSeperatorColor"] = dialogSeperatorColorMap;
  } else {
    theDocument["dialogSeperatorColor"] = null;
  }
  if (popupMenuButtonColor != null) {
    theDocument["popupMenuButtonColor"] = popupMenuButtonColorMap;
  } else {
    theDocument["popupMenuButtonColor"] = null;
  }
  if (textBubbleBackgroundColor != null) {
    theDocument["textBubbleBackgroundColor"] = textBubbleBackgroundColorMap;
  } else {
    theDocument["textBubbleBackgroundColor"] = null;
  }
  if (dropdownButtonnColor != null) {
    theDocument["dropdownButtonnColor"] = dropdownButtonnColorMap;
  } else {
    theDocument["dropdownButtonnColor"] = null;
  }
  if (listTileColor != null) {
    theDocument["listTileColor"] = listTileColorMap;
  } else {
    theDocument["listTileColor"] = null;
  }
  return theDocument;
}