XML Converter For Dartrofit

pub package

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

Libraries

dartrofit_converter_xml