fixnumAdapter top-level property
JsonMapperAdapter
fixnumAdapter
final
Implementation
final fixnumAdapter = JsonMapperAdapter(
title: 'Fixnum Adapter',
refUrl: 'https://pub.dev/packages/fixnum',
url:
'https://github.com/k-paxian/dart-json-mapper/tree/master/adapters/fixnum',
typeInfoDecorators: {
0: fixnumTypeInfoDecorator
},
converters: {
Int32: int32Converter,
Int64: int64Converter
},
valueDecorators: {
typeOf<List<Int32>>(): (value) => value.cast<Int32>(),
typeOf<List<Int64>>(): (value) => value.cast<Int64>(),
typeOf<Set<Int32>>(): (value) => Set<Int32>.of(value.cast<Int32>()),
typeOf<Set<Int64>>(): (value) => Set<Int64>.of(value.cast<Int64>()),
});