toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'success': success,
'url': url,
'path': path,
'size': size,
'file_type': fileType,
'photo_type': photoType,
'uploaded_at': uploadedAt,
if (formattedMessage != null) 'formatted_message': formattedMessage,
if (usageTip != null) 'usage_tip': usageTip,
};
}