toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'success'] = this.success;
    json[r'messageId'] = this.messageId;
  if (this.threadId != null) {
    json[r'threadId'] = this.threadId;
  } else {
    json[r'threadId'] = null;
  }
    json[r'provider'] = this.provider;
  if (this.error != null) {
    json[r'error'] = this.error;
  } else {
    json[r'error'] = null;
  }
  return json;
}