PMU/lib/card_model.dart
2024-10-08 23:25:53 +04:00

16 lines
346 B
Dart

class CardModel {
final String suit;
final String value;
final String imageUrl;
CardModel({required this.suit, required this.value, required this.imageUrl});
factory CardModel.fromJson(Map<String, dynamic> json) {
return CardModel(
suit: json['suit'],
value: json['value'],
imageUrl: json['image'],
);
}
}