toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() {
final authorChannelId = this.authorChannelId;
final authorChannelUrl = this.authorChannelUrl;
final authorDisplayName = this.authorDisplayName;
final authorProfileImageUrl = this.authorProfileImageUrl;
final canRate = this.canRate;
final channelId = this.channelId;
final likeCount = this.likeCount;
final moderationStatus = this.moderationStatus;
final parentId = this.parentId;
final postId = this.postId;
final publishedAt = this.publishedAt;
final textDisplay = this.textDisplay;
final textOriginal = this.textOriginal;
final updatedAt = this.updatedAt;
final videoId = this.videoId;
final viewerRating = this.viewerRating;
return {
'authorChannelId': ?authorChannelId,
'authorChannelUrl': ?authorChannelUrl,
'authorDisplayName': ?authorDisplayName,
'authorProfileImageUrl': ?authorProfileImageUrl,
'canRate': ?canRate,
'channelId': ?channelId,
'likeCount': ?likeCount,
'moderationStatus': ?moderationStatus,
'parentId': ?parentId,
'postId': ?postId,
'publishedAt': ?publishedAt?.toUtc().toIso8601String(),
'textDisplay': ?textDisplay,
'textOriginal': ?textOriginal,
'updatedAt': ?updatedAt?.toUtc().toIso8601String(),
'videoId': ?videoId,
'viewerRating': ?viewerRating,
};
}