@override Object toJson() => { 'parent': parent, 'function': ?function?.toJson(), if (functionId.isNotDefault) 'functionId': functionId, };