24 lines
495 B
Dart
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,
|
|
};
|
|
}
|