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