babai/shared_models/lib/models/translation_request.dart
2025-01-29 17:50:44 -07:00

24 lines
495 B
Dart

class TranslationRequest {
final String id;
final String userId;
final String inputText;
final DateTime timestamp;
String? result;
TranslationRequest({
required this.id,
required this.userId,
required this.inputText,
required this.timestamp,
this.result,
});
Map<String, dynamic> toJson() => {
'id': id,
'userId': userId,
'inputText': inputText,
'timestamp': timestamp.toIso8601String(),
'result': result,
};
}