defaultSerializer property

Map<Type, ToJsonParserFunction> defaultSerializer
getter/setter pair

Implementation

Map<Type, ToJsonParserFunction> defaultSerializer = {
  DateTime: (dynamic object) => (object as DateTime).toIso8601String(),
  Duration: (dynamic object) => (object as Duration).inMilliseconds,
  Uri: (dynamic object) => (object as Uri).toString(),
  RegExp: (dynamic object) => (object as RegExp).pattern,
  String: (dynamic object) => (object as String),
  num: (dynamic object) => (object as num),
  int: (dynamic object) => (object as int),
  double: (dynamic object) => (object as double),
  bool: (dynamic object) => (object as bool),
};