toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'_id'] = this.id;
    json[r'tenantId'] = this.tenantId;
    json[r'urlId'] = this.urlId;
    json[r'anonUserId'] = this.anonUserId;
    json[r'userId'] = this.userId;
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
    json[r'value'] = this.value;
  if (this.commentId != null) {
    json[r'commentId'] = this.commentId;
  } else {
    json[r'commentId'] = null;
  }
    json[r'questionId'] = this.questionId;
  if (this.meta != null) {
    json[r'meta'] = this.meta;
  } else {
    json[r'meta'] = null;
  }
    json[r'ipHash'] = this.ipHash;
  return json;
}