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