toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
json[r'custom'] = this.custom;
json[r'id'] = this.id;
json[r'reason'] = this.reason;
if (this.reviewQueueItem != null) {
json[r'review_queue_item'] = this.reviewQueueItem;
} else {
json[r'review_queue_item'] = null;
}
json[r'review_queue_item_id'] = this.reviewQueueItemId;
if (this.targetUser != null) {
json[r'target_user'] = this.targetUser;
} else {
json[r'target_user'] = null;
}
json[r'target_user_id'] = this.targetUserId;
json[r'type'] = this.type;
if (this.user != null) {
json[r'user'] = this.user;
} else {
json[r'user'] = null;
}
return json;
}