ApiFile constructor
const
ApiFile({})
Creates an ApiFile. Either file or bytes must be provided.
Implementation
const ApiFile({
required this.fieldName,
this.file,
this.bytes,
this.filename,
this.mimeType,
}) : assert(
file != null || bytes != null,
'ApiFile: either file or bytes must be provided',
);