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