2024-10-29 01:49:32 +04:00
|
|
|
import 'package:pmu_labs/data/dtos/bosses_dto.dart';
|
|
|
|
import 'package:pmu_labs/domain/models/card.dart';
|
|
|
|
|
|
|
|
extension BossDataDtoToModel on BossAttributesDataDto {
|
|
|
|
CardData toDomain() => CardData(
|
|
|
|
title ?? 'UNKNOWN',
|
2024-11-25 23:02:19 +04:00
|
|
|
id: id ?? 'UNKNOWN',
|
2024-10-29 01:49:32 +04:00
|
|
|
descriptionText: 'Открыть', //attributes?.description,
|
2024-11-25 23:02:19 +04:00
|
|
|
gameDesc: description, //attributes?.drop,
|
2024-10-29 01:49:32 +04:00
|
|
|
imageUrl: imageUrl,
|
|
|
|
);
|
|
|
|
}
|