String resultsToMap(List<Results> data) => json.encode( List<Map<String, dynamic>>.from( data.map<Map<String, dynamic>>( (x) => x.toMap(), ), ), );