getWorldJsonString method
Returns the given world as a JSON string.
Implementation
String getWorldJsonString({final bool compact = true}) {
final json = world.toJson();
if (compact) {
return jsonEncode(json);
}
return indentedJsonEncoder.convert(json);
}