decode method

  1. @override
Map<String, Uint8List> decode(
  1. Object value
)
override

Implementation

@override
Map<String, Uint8List> decode(Object value) {
  if (value is Map<String, dynamic>) {
    return value.map((key, value) {
      if (value is String) {
        return MapEntry(key, base64Decode(value));
      }
      return MapEntry(key, value as Uint8List);
    });
  }
  return {};
}