core.Map<core.String, core.dynamic> toJson() => { if (publishState != null) 'publishState': publishState!, };