toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.commenterEmail != null) {
    json[r'commenterEmail'] = this.commenterEmail;
  } else {
    json[r'commenterEmail'] = null;
  }
  if (this.commenterName != null) {
    json[r'commenterName'] = this.commenterName;
  } else {
    json[r'commenterName'] = null;
  }
    json[r'voteDir'] = this.voteDir;
  if (this.url != null) {
    json[r'url'] = this.url;
  } else {
    json[r'url'] = null;
  }
  return json;
}