toEntity method

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

Implementation

@override
MenuItemEntity toEntity({String? appId}) {
  return MenuItemEntity(
    text: (text != null) ? text : null,
    description: (description != null) ? description : null,
    icon: (icon != null) ? icon!.toEntity(appId: appId) : null,
    action: (action != null) ? action!.toEntity(appId: appId) : null,
  );
}