methods method

  1. @override
Map<String, Function> methods()
override

Implementation

@override
Map<String, Function> methods() {
  return {
    'stringify': (dynamic value) =>
        (value != null) ? json.encode(value) : null,
    'parse': (String value) => json.decode(value)
  };
}