mapAsync method
Asynchronously maps a source object to the target type
source - The source object to map
Implementation
@override
Future<PFormFile> mapAsync(UploadedFile source) async {
return PFormFile(
source.name,
source.contentType,
await source.readAsBytes(),
);
}