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