dartrofit_converter_xml 1.1.0 dartrofit_converter_xml: ^1.1.0 copied to clipboard
A Converter which uses xml for XML serialization.
XML Converter For Dartrofit #
A Converter which uses xml for XML serialization.
Example #
import 'package:dartrofit/dartrofit.dart';
import 'package:quiver/core.dart';
import 'package:xml/xml.dart' as xml;
part 'my_service.g.dart';
@Service()
abstract class MyService {
MyService._();
factory MyService(Dartrofit dartrofit) = _$MyService;
@GET('bookshelf')
Future<Response<xml.XmlDocument>> getBookshelf1();
@GET('bookshelf')
Future<Response<Optional<xml.XmlDocument>>> getBookshelf2();
@GET('bookshelf')
Future<xml.XmlDocument> getBookshelf3();
@GET('bookshelf')
Future<Optional<xml.XmlDocument>> getBookshelf4();
@POST('postBookshelf')
Future<Response<Map<String, Object>>> postBookshelf(@Body() xml.XmlNode bookshelf);
}
Download #
dependencies:
dartrofit_converter_xml: ^1.1.0