map method

  1. @override
PFormData map(
  1. FormData source
)

Maps a source object to the target type

source - The source object to map

Implementation

@override
PFormData map(FormData source) {
  return PFormData(
    fields: source.fields,
    files: source.files.map(
      (key, file) {
        return MapEntry(
          key,
          mapper.map(file),
        );
      },
    ),
  );
}