Map<String, dynamic> toJson() { return { 'propertyName': propertyName, 'inherits': inherits, 'syntax': syntax, if (initialValue != null) 'initialValue': initialValue!.toJson(), }; }