Map<String, dynamic> toJson() { return { 'type': type.toJson(), if (tableEntryUrl != null) 'tableEntryUrl': tableEntryUrl, }; }