dart-archive / dart2_fix

A tool to migrate API usage to Dart 2
https://pub.dartlang.org/packages/dart2_fix
BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

Fix json/base64 encode and decode to use top-level functions. #28

Closed lrhn closed 6 years ago

lrhn commented 6 years ago

Please add translations:

JSON.encode -> jsonEncode
JSON.decode -> jsonDecode
BASE64.encode -> base64Encode
BASE64.decode -> base64Decode

Converting the first one to json.encode causes a lot of conflicts with code like:

var json = JSON.decode(input);

and it's a simple change.