19 lines
363 B
Dart
19 lines
363 B
Dart
import 'package:messaging_app/models/details.dart';
|
|
|
|
class Conversations {
|
|
String chatId;
|
|
Details details;
|
|
|
|
Conversations({
|
|
required this.chatId,
|
|
required this.details,
|
|
});
|
|
|
|
factory Conversations.fromData(String _chatId, String _details) {
|
|
return Conversations(
|
|
chatId: _chatId,
|
|
details: Details.fromData(_details),
|
|
);
|
|
}
|
|
}
|