Files
Nils-Johan Gynther 3d9b124766
Test Suite / backend-pr-quick (push) Has been skipped
Test Suite / quick-import-pr-quick (push) Has been skipped
Test Suite / backend-full (push) Successful in 2m27s
Test Suite / flutter-quality (push) Successful in 1m47s
feat: add HelpText model, service, and controller for dynamic help text management
2026-05-13 16:20:04 +02:00

28 lines
772 B
Dart

class HelpTextContent {
final String key;
final String scope;
final String title;
final String content;
final DateTime? updatedAt;
const HelpTextContent({
required this.key,
required this.scope,
required this.title,
required this.content,
this.updatedAt,
});
factory HelpTextContent.fromJson(Map<String, dynamic> json) {
return HelpTextContent(
key: (json['key'] as String? ?? '').trim(),
scope: (json['scope'] as String? ?? 'default').trim(),
title: (json['title'] as String? ?? '').trim(),
content: (json['content'] as String? ?? '').trim(),
updatedAt: json['updatedAt'] is String
? DateTime.tryParse(json['updatedAt'] as String)
: null,
);
}
}