Move from json to dart:convert; compiler warnings