toEntity method

  1. @override
MonaStyleAttributesEntity toEntity({
  1. String? appId,
})
override

Implementation

@override
MonaStyleAttributesEntity toEntity({String? appId}) {
  return MonaStyleAttributesEntity(
    appId: appId,
    formBackground: (formBackground != null)
        ? formBackground!.toEntity(appId: appId)
        : null,
    appBackground: (appBackground != null)
        ? appBackground!.toEntity(appId: appId)
        : null,
    formGroupTitleColor: (formGroupTitleColor != null)
        ? formGroupTitleColor!.toEntity(appId: appId)
        : null,
    formFieldTextColor: (formFieldTextColor != null)
        ? formFieldTextColor!.toEntity(appId: appId)
        : null,
    formFieldHeaderColor: (formFieldHeaderColor != null)
        ? formFieldHeaderColor!.toEntity(appId: appId)
        : null,
    formFieldFocusColor: (formFieldFocusColor != null)
        ? formFieldFocusColor!.toEntity(appId: appId)
        : null,
    listBackground: (listBackground != null)
        ? listBackground!.toEntity(appId: appId)
        : null,
    listTextItemColor: (listTextItemColor != null)
        ? listTextItemColor!.toEntity(appId: appId)
        : null,
    floatingButtonForegroundColor: (floatingButtonForegroundColor != null)
        ? floatingButtonForegroundColor!.toEntity(appId: appId)
        : null,
    floatingButtonBackgroundColor: (floatingButtonBackgroundColor != null)
        ? floatingButtonBackgroundColor!.toEntity(appId: appId)
        : null,
    dividerColor:
        (dividerColor != null) ? dividerColor!.toEntity(appId: appId) : null,
    topicContainerBackground: (topicContainerBackground != null)
        ? topicContainerBackground!.toEntity(appId: appId)
        : null,
    actionContainerBackground: (actionContainerBackground != null)
        ? actionContainerBackground!.toEntity(appId: appId)
        : null,
    appBarBG: (appBarBG != null) ? appBarBG!.toEntity(appId: appId) : null,
    appBarIconColor: (appBarIconColor != null)
        ? appBarIconColor!.toEntity(appId: appId)
        : null,
    appBarSelectedIconColor: (appBarSelectedIconColor != null)
        ? appBarSelectedIconColor!.toEntity(appId: appId)
        : null,
    appBarMenuBackgroundColor: (appBarMenuBackgroundColor != null)
        ? appBarMenuBackgroundColor!.toEntity(appId: appId)
        : null,
    bottomNavigationBarBG: (bottomNavigationBarBG != null)
        ? bottomNavigationBarBG!.toEntity(appId: appId)
        : null,
    drawerBG: (drawerBG != null) ? drawerBG!.toEntity(appId: appId) : null,
    drawerHeaderBG: (drawerHeaderBG != null)
        ? drawerHeaderBG!.toEntity(appId: appId)
        : null,
    profileDrawerBG: (profileDrawerBG != null)
        ? profileDrawerBG!.toEntity(appId: appId)
        : null,
    profileDrawerHeaderBG: (profileDrawerHeaderBG != null)
        ? profileDrawerHeaderBG!.toEntity(appId: appId)
        : null,
    backgroundColorHomeMenu: (backgroundColorHomeMenu != null)
        ? backgroundColorHomeMenu!.toEntity(appId: appId)
        : null,
    h1: (h1 != null) ? h1!.toEntity(appId: appId) : null,
    h2: (h2 != null) ? h2!.toEntity(appId: appId) : null,
    h3: (h3 != null) ? h3!.toEntity(appId: appId) : null,
    h4: (h4 != null) ? h4!.toEntity(appId: appId) : null,
    h5: (h5 != null) ? h5!.toEntity(appId: appId) : null,
    textFieldHeader: (textFieldHeader != null)
        ? textFieldHeader!.toEntity(appId: appId)
        : null,
    fontText: (fontText != null) ? fontText!.toEntity(appId: appId) : null,
    fontSmallText: (fontSmallText != null)
        ? fontSmallText!.toEntity(appId: appId)
        : null,
    fontHighlight1: (fontHighlight1 != null)
        ? fontHighlight1!.toEntity(appId: appId)
        : null,
    fontHighlight2: (fontHighlight2 != null)
        ? fontHighlight2!.toEntity(appId: appId)
        : null,
    fontLink: (fontLink != null) ? fontLink!.toEntity(appId: appId) : null,
    routeBuilder: (routeBuilder != null) ? routeBuilder!.index : null,
    routeAnimationDuration:
        (routeAnimationDuration != null) ? routeAnimationDuration : null,
    dialogBackgroundColor: (dialogBackgroundColor != null)
        ? dialogBackgroundColor!.toEntity(appId: appId)
        : null,
    dialogSeperatorColor: (dialogSeperatorColor != null)
        ? dialogSeperatorColor!.toEntity(appId: appId)
        : null,
    popupMenuButtonColor: (popupMenuButtonColor != null)
        ? popupMenuButtonColor!.toEntity(appId: appId)
        : null,
    textBubbleBackgroundColor: (textBubbleBackgroundColor != null)
        ? textBubbleBackgroundColor!.toEntity(appId: appId)
        : null,
    dropdownButtonnColor: (dropdownButtonnColor != null)
        ? dropdownButtonnColor!.toEntity(appId: appId)
        : null,
    listTileColor: (listTileColor != null)
        ? listTileColor!.toEntity(appId: appId)
        : null,
  );
}