Converts instance to a map.
Map<String, dynamic> toMap() { return { "message": message, "url": url?.toString(), }; }