data property

  1. @override
Future get data
override

Implementation

@override
Future<dynamic> get data async {
  final map = await requestModel.toMap();
  if (map is Map<String, dynamic>) {
    if (map.isEmpty) return null;
    return multiPart ? FormData.fromMap(map) : map;
  } else {
    return map;
  }
}