convert method

  1. @override
Map<String, dynamic> convert(
  1. String input
)
override

Converts input and returns the result of the conversion.

Implementation

@override
Map<String, dynamic> convert(String input) {
  final decoded = base64Decode(input);
  final result =
      sl<EncryptionService>().aesCbcDecrypt(utf8.encode(password), decoded);

  return jsonDecode(utf8.decode(result));
}