Files
2026-09-18 00:16:49 +02:00

27 lines
650 B
Dart

/// A single values-sort card with title, description, and optional domain.
library;
/// Immutable card drawn from the values deck.
class ValueCard {
const ValueCard({
required this.id,
required this.title,
required this.description,
this.domain = 'Values',
});
final String id;
final String title;
final String description;
final String domain;
factory ValueCard.fromJson(Map<String, dynamic> json) {
return ValueCard(
id: json['id'] as String,
title: json['title'] as String,
description: json['description'] as String? ?? '',
domain: json['domain'] as String? ?? 'Values',
);
}
}