Minor Fixes

This commit is contained in:
Artyom_Yashin 2024-12-20 20:52:50 +04:00
parent 1e96e009ac
commit 4879677561
2 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,7 @@ extension CharactersDtoToModel on CharactersDto {
extension CharactersDataDtoToModel on CharactersDataDto {
CardData toDomain() => CardData(
fullName,
id: id,
family: family,
title: title,
imageUrl: imageUrl

View File

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
class CardData{
final int id;
final String fullName;
final String title;
final String family;
@ -8,6 +9,7 @@ class CardData{
CardData (
this.fullName, {
required this.id,
required this.title,
required this.family,
required this.imageUrl