toJson method Null safety

String toJson()

Implementation

String toJson() {
  return "{" "\"url\":\"$url\"}";
}