toEntity method
Implementation
@override
DrawerEntity toEntity({String? appId}) {
return DrawerEntity(
appId: appId,
name: (name != null) ? name : null,
backgroundOverride: (backgroundOverride != null)
? backgroundOverride!.toEntity(appId: appId)
: null,
headerText: (headerText != null) ? headerText : null,
secondHeaderText: (secondHeaderText != null) ? secondHeaderText : null,
headerHeight: (headerHeight != null) ? headerHeight : null,
popupMenuBackgroundColor: (popupMenuBackgroundColor != null)
? popupMenuBackgroundColor!.toEntity(appId: appId)
: null,
headerBackgroundOverride: (headerBackgroundOverride != null)
? headerBackgroundOverride!.toEntity(appId: appId)
: null,
popupMenuBackgroundColorOverride:
(popupMenuBackgroundColorOverride != null)
? popupMenuBackgroundColorOverride!.toEntity(appId: appId)
: null,
menuId: (menu != null) ? menu!.documentID : null,
);
}