toMap method
转换为Map 注意:customUpload函数无法序列化,不包含在Map中
Implementation
Map<String, dynamic> toMap() {
return {
'headers': headers,
'uploadUrl': uploadUrl,
'method': method,
'timeout': timeout,
'fileFieldName': fileFieldName,
'extraData': extraData,
// customUpload函数无法序列化
};
}