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