toJson method

Map<String, dynamic> toJson()

Implementation

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