String toJson({bool beautify = false}) { if (beautify) return JsonEncoder.withIndent(' ').convert(toMap()); return jsonEncode(toMap()); }