toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.readReceipts != null) {
    json[r'read_receipts'] = this.readReceipts;
  } else {
    json[r'read_receipts'] = null;
  }
  if (this.typingIndicators != null) {
    json[r'typing_indicators'] = this.typingIndicators;
  } else {
    json[r'typing_indicators'] = null;
  }
  return json;
}