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