toJson method
Implementation
Map<String, Object?> toJson() {
var mediaType = this.mediaType;
var comment = this.comment;
final json = <String, Object?>{};
if (mediaType != null) {
json[r'mediaType'] = mediaType;
}
if (comment != null) {
json[r'comment'] = comment;
}
return json;
}