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