toEntity method

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

Implementation

@override
HomeMenuEntity toEntity({String? appId}) {
  return HomeMenuEntity(
    appId: appId,
    name: (name != null) ? name : null,
    menuId: (menu != null) ? menu!.documentID : null,
    iconColorOverride: (iconColorOverride != null)
        ? iconColorOverride!.toEntity(appId: appId)
        : null,
    backgroundOverride: (backgroundOverride != null)
        ? backgroundOverride!.toEntity(appId: appId)
        : null,
    popupMenuBackgroundColorOverride:
        (popupMenuBackgroundColorOverride != null)
            ? popupMenuBackgroundColorOverride!.toEntity(appId: appId)
            : null,
  );
}