ChatModel constructor

ChatModel(
  1. bool broadcast,
  2. String? senderId,
  3. String? sender,
  4. String? type,
  5. String? message,
  6. String? currentTime,
  7. bool? isReceived,
  8. FileShareModel fileShareModel,
  9. dynamic fileName,
  10. dynamic jsonData,
)

Implementation

ChatModel(
  bool broadcast,
  String? senderId,
  String? sender,
  String? type,
  String? message,
  String? currentTime,
  bool? isReceived,
    FileShareModel fileShareModel,fileName,jsonData
) {
  _broadcast = broadcast;
  _senderId = senderId;
  _sender = sender;
  _type = type;
  _message = message;
  _currentTime = currentTime;
  _isRecieved = isReceived;
  _fileShareModel=fileShareModel;
  _fileName=fileName;
  _jsonData=jsonData;
}