toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'actions'] = this.actions;
if (this.assignedTo != null) {
json[r'assigned_to'] = this.assignedTo;
} else {
json[r'assigned_to'] = null;
}
json[r'bans'] = this.bans;
json[r'completed_at'] = this.completedAt;
json[r'content_changed'] = this.contentChanged;
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
if (this.entityCreator != null) {
json[r'entity_creator'] = this.entityCreator;
} else {
json[r'entity_creator'] = null;
}
json[r'entity_id'] = this.entityId;
json[r'entity_type'] = this.entityType;
if (this.feedsV2Activity != null) {
json[r'feeds_v2_activity'] = this.feedsV2Activity;
} else {
json[r'feeds_v2_activity'] = null;
}
if (this.feedsV2Reaction != null) {
json[r'feeds_v2_reaction'] = this.feedsV2Reaction;
} else {
json[r'feeds_v2_reaction'] = null;
}
json[r'flags'] = this.flags;
json[r'has_image'] = this.hasImage;
json[r'has_text'] = this.hasText;
json[r'has_video'] = this.hasVideo;
json[r'id'] = this.id;
json[r'languages'] = this.languages;
if (this.message != null) {
json[r'message'] = this.message;
} else {
json[r'message'] = null;
}
if (this.moderationPayload != null) {
json[r'moderation_payload'] = this.moderationPayload;
} else {
json[r'moderation_payload'] = null;
}
json[r'moderation_payload_hash'] = this.moderationPayloadHash;
json[r'recommended_action'] = this.recommendedAction;
json[r'reviewed_at'] = this.reviewedAt;
json[r'reviewed_by'] = this.reviewedBy;
json[r'severity'] = this.severity;
json[r'status'] = this.status;
json[r'updated_at'] = this.updatedAt.toUtc().toIso8601String();
return json;
}