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