16 lines
346 B
Dart
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'],
|
|
);
|
|
}
|
|
}
|