toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.commenterName != null) {
json[r'commenterName'] = this.commenterName;
} else {
json[r'commenterName'] = null;
}
if (this.firstCommentDate != null) {
json[r'firstCommentDate'] = this.firstCommentDate!.toUtc().toIso8601String();
} else {
json[r'firstCommentDate'] = null;
}
if (this.ipHash != null) {
json[r'ipHash'] = this.ipHash;
} else {
json[r'ipHash'] = null;
}
if (this.countryFlag != null) {
json[r'countryFlag'] = this.countryFlag;
} else {
json[r'countryFlag'] = null;
}
if (this.countryCode != null) {
json[r'countryCode'] = this.countryCode;
} else {
json[r'countryCode'] = null;
}
if (this.websiteUrl != null) {
json[r'websiteUrl'] = this.websiteUrl;
} else {
json[r'websiteUrl'] = null;
}
if (this.bio != null) {
json[r'bio'] = this.bio;
} else {
json[r'bio'] = null;
}
if (this.karma != null) {
json[r'karma'] = this.karma;
} else {
json[r'karma'] = null;
}
if (this.locale != null) {
json[r'locale'] = this.locale;
} else {
json[r'locale'] = null;
}
if (this.verified != null) {
json[r'verified'] = this.verified;
} else {
json[r'verified'] = null;
}
if (this.avatarSrc != null) {
json[r'avatarSrc'] = this.avatarSrc;
} else {
json[r'avatarSrc'] = null;
}
if (this.displayName != null) {
json[r'displayName'] = this.displayName;
} else {
json[r'displayName'] = null;
}
if (this.username != null) {
json[r'username'] = this.username;
} else {
json[r'username'] = null;
}
if (this.commenterEmail != null) {
json[r'commenterEmail'] = this.commenterEmail;
} else {
json[r'commenterEmail'] = null;
}
if (this.email != null) {
json[r'email'] = this.email;
} else {
json[r'email'] = null;
}
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;
}
return json;
}