adapter property

VoyagerPage serialization adapter

Implementation

static final adapter =
    VoyagerAdapter<VoyagerArgument>(serialize: (dynamic argument) {
  return <String, dynamic>{"value": VoyagerAdapter.toJson(argument.value)};
}, deserialize: (json) {
  final dynamic value =
      // ignore: avoid_as
      VoyagerAdapter.fromJson(json["value"] as Map<String, dynamic>?);
  return VoyagerArgument(value);
});