setSession method Null safety

Future<void> setSession(
  1. Map<String, dynamic> fields
)

Set data session fields to set, can be checked at https://github.com/transmission/transmission/blob/master/extras/rpc-spec.txt Throws TransmissionException if errors

Implementation

Future<void> setSession(Map<String, dynamic> fields) async {
  final results = await _dio.post('/',
      data: _Request(methodSetSession, arguments: fields).toJSON());
  final response = _Response.fromJSON(results.data);
  _checkResults(response);
}