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