toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (id != null) {
_json[r'id'] = id;
}
if (userId != null) {
_json[r'user_id'] = userId;
}
if (postId != null) {
_json[r'post_id'] = postId;
}
if (createAt != null) {
_json[r'create_at'] = createAt;
}
if (updateAt != null) {
_json[r'update_at'] = updateAt;
}
if (deleteAt != null) {
_json[r'delete_at'] = deleteAt;
}
if (name != null) {
_json[r'name'] = name;
}
if (extension_ != null) {
_json[r'extension'] = extension_;
}
if (size != null) {
_json[r'size'] = size;
}
if (mimeType != null) {
_json[r'mime_type'] = mimeType;
}
if (width != null) {
_json[r'width'] = width;
}
if (height != null) {
_json[r'height'] = height;
}
if (hasPreviewImage != null) {
_json[r'has_preview_image'] = hasPreviewImage;
}
return _json;
}