toMap method
Converts the InfospectFormDataFile
object into a Map representation.
Returns a Map with the following key-value pairs:
- 'fileName': The name of the file.
- 'contentType': The content type (MIME type) of the file.
- 'length': The length (size) of the file in bytes.
Implementation
Map<String, dynamic> toMap() {
return <String, dynamic>{
'fileName': fileName,
'contentType': contentType,
'length': length,
};
}