toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'userId'] = this.userId;
    json[r'badgeId'] = this.badgeId;
  if (this.displayedOnComments != null) {
    json[r'displayedOnComments'] = this.displayedOnComments;
  } else {
    json[r'displayedOnComments'] = null;
  }
  return json;
}