defaultDeserializer property

Map<Type, FromJsonParserFunction> defaultDeserializer
getter/setter pair

Implementation

Map<Type, FromJsonParserFunction> defaultDeserializer = {
  DateTime: (dynamic value) => DateTime.parse(value.toString()),
  Duration: (dynamic value) =>
      Duration(milliseconds: int.parse(value.toString())),
  Uri: (dynamic value) => Uri.parse(value.toString()),
  RegExp: (dynamic value) => RegExp(value.toString()),
  String: (dynamic value) => value as String,
  num: (dynamic value) => num.parse(value.toString()),
  int: (dynamic value) => int.parse(value.toString()),
  double: (dynamic value) => double.parse(value.toString()),
  bool: (dynamic value) => bool.parse(value.toString()),
};