dartrofit_converter_xml 1.1.0 copy "dartrofit_converter_xml: ^1.1.0" to clipboard
dartrofit_converter_xml: ^1.1.0 copied to clipboard

A Converter which uses xml for XML serialization.

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
0
likes
20
points
49
downloads

Publisher

verified publishernikeo.cn

Weekly Downloads

A Converter which uses xml for XML serialization.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

dartrofit, http_parser, xml

More

Packages that depend on dartrofit_converter_xml